.rk-wrap, .rk-detail { width: min(100% - 48px, 1120px); margin: 36px auto 64px; color: var(--ink,#152b48); }
.rk-wrap *, .rk-detail * { box-sizing: border-box; }
.rk-wrap h1, .rk-detail h1, .rk-wrap h2, .rk-detail h2, .rk-wrap p, .rk-detail p { margin: 0; }
.rk-wrap a, .rk-detail a { color: var(--blue,#1751b5); text-decoration: none; }
.rk-wrap button, .rk-detail button, .rk-wrap input { font: inherit; }
.rk-wrap button, .rk-detail button { cursor: pointer; }
.rk-wrap button:focus-visible, .rk-detail button:focus-visible, .rk-wrap a:focus-visible, .rk-detail a:focus-visible { outline: 3px solid #749ff8; outline-offset: 2px; }
.rk-wrap .rk-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; padding: 19px 24px; color: #fff; background: var(--blue,#1751b5); border-radius: 16px; }
.rk-next > span { display: grid; gap: 3px; }
.rk-next small, .rk-player-hero small { font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.rk-next > span > b { font-size: 1.35rem; line-height: 1.25; }
.rk-next > span > span { font-size: .9rem; color: #e2eafe; }
.rk-next i { display: inline-flex; align-items: center; border-radius: 99px; background: white; color: var(--blue,#1751b5); padding: 9px 16px; font-size: .85rem; line-height: 1.2; font-style: normal; font-weight: 750; white-space: nowrap; }
.rk-next:hover i { background: #edf4ff; }
.rk-overview { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin: 26px 0; }
.rk-head h1 { font-size: clamp(2rem,3.2vw,2.8rem); line-height: 1.13; letter-spacing: -.05em; color: var(--navy,#0d2a58); }
.rk-head p, .rk-side-guide p, .rk-breakdown p, .rk-notes p { color: var(--muted,#52637a); }
.rk-head p { margin-top: 8px; font-size: .92rem; }
.rk-head a { display: inline-block; margin-left: 4px; border-radius: 5px; font-weight: 740; }
.rk-head a:hover, .rk-side-guide a:hover, .rk-trail a:hover, .rk-player:hover .rk-name { text-decoration: underline; }
.rk-stats { display: flex; gap: 10px; }
.rk-stat { display: grid; align-content: center; min-width: 105px; gap: 5px; padding: 13px 17px; border: 1px solid var(--line,#dae2ee); border-radius: 14px; background: white; }
.rk-stat strong { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.04em; color: var(--navy,#0d2a58); font-variant-numeric: tabular-nums; }
.rk-stat span { font-size: .82rem; line-height: 1.4; color: var(--muted,#52637a); }
.rk-grid { display: grid; grid-template-columns: minmax(0,2.25fr) minmax(240px,1fr); gap: 22px; align-items: start; }
.rk-card { border: 1px solid var(--line,#dae2ee); background: white; border-radius: 17px; }
.rk-main { overflow: hidden; min-width: 0; }
.rk-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line,#dae2ee); }
.rk-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 10px; background: #f0f4fa; }
.rk-tabs button { min-height: 36px; padding: 5px 12px; border: 0; background: transparent; color: var(--muted,#52637a); border-radius: 7px; font-size: .87rem; font-weight: 620; }
.rk-tabs button[aria-selected="true"] { color: var(--blue,#1751b5); background: white; box-shadow: 0 1px 4px #153b701c; }
.rk-search { display: inline-flex; align-items: center; gap: 8px; width: min(42%, 210px); min-height: 41px; border: 1px solid var(--line,#dae2ee); border-radius: 9px; padding: 4px 10px; color: var(--muted,#52637a); background: white; }
.rk-search svg { flex: none; }
.rk-search input { width: 100%; min-width: 0; padding: 3px 0; border: 0; background: transparent; color: var(--ink,#152b48); font-size: .86rem; line-height: 1.2; outline: 0; }
.rk-search:focus-within { outline: 2px solid var(--blue,#1751b5); outline-offset: 1px; }
.rk-notes { padding: 14px 18px; }
.rk-notes b { display: inline-block; font-size: .92rem; }
.rk-notes p { margin-top: 4px; font-size: .84rem; line-height: 1.5; }
.rk-scroll { overflow-x: auto; }
.rk-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rk-table th, .rk-table td { text-align: right; padding: 9px 10px; white-space: nowrap; border-top: 1px solid var(--line,#dae2ee); }
.rk-table th { background: #f9fbfe; color: var(--muted,#52637a); font-size: .77rem; }
.rk-table th button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; background: transparent; border: 0; padding: 3px 0; color: inherit; font-weight: 690; }
.rk-table th[aria-sort] button { color: var(--blue,#1751b5); }
.rk-sort { display: inline-block; width: 5px; height: 5px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(-45deg); }
.rk-sort.down { transform: rotate(135deg); }
.rk-table .rk-col-name { text-align: left; width: 50%; }
.rk-table .rk-col-rank { text-align: center; width: 47px; min-width: 36px; }
.rk-table td:last-child, .rk-table th:last-child { padding-right: 18px; }
.rk-leading { background: #f2f7ff; }
.rk-table tbody tr:hover { background: #f4f8fe; }
.rk-table .rk-player { display: inline-flex; align-items: center; gap: 9px; color: var(--ink,#152b48); font-size: .92rem; font-weight: 680; }
.rk-photo { display: inline-flex; }
.rk-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 100%; background: #e2ebfa; background: color-mix(in srgb, var(--player-tint,#618ac5) 20%, white); color: #173254; font-weight: 760; font-size: .75rem; }
.rk-avatar.rk-large { width: 72px; height: 72px; border: 2px solid #fff; font-size: 1.55rem; }
.rk-me { color: var(--blue,#1751b5); background: #e6efff; border-radius: 5px; padding: 2px 5px; font-size: .72rem; }
.rk-place { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 100%; font-size: .86rem; font-weight: 690; }
.rk-place-1 { background: #faeab2; color: #694e0d; }
.rk-place-2 { background: #e6ecf4; color: #465a73; }
.rk-place-3 { background: #f4e5d9; color: #77472b; }
.rk-col-points, .rk-col-monthly, td.rk-col-rating { font-weight: 730; color: var(--blue,#1751b5); }
.rk-table td.rk-empty { padding: 34px 14px; color: var(--muted,#52637a); text-align: center; white-space: normal; }
.rk-show { width: 100%; padding: 14px; background: var(--pale,#f3f7ff); border: 0; border-top: 1px solid var(--line,#dae2ee); color: var(--blue,#1751b5); font-weight: 690; }
.rk-sidebar { display: grid; gap: 16px; }
.rk-sidebar .rk-card { overflow: hidden; }
.rk-sidehead { display: flex; align-items: center; gap: 9px; background: var(--navy,#0d2a58); color: white; padding: 15px 18px; }
.rk-sidehead h2, .rk-side-guide h2, .rk-breakdown h2 { font-size: 1.1rem; letter-spacing: -.025em; line-height: 1.35; }
.rk-sidehead h2 { color: white; }
.rk-sidebar .rk-spot-item { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line,#dae2ee); padding: 15px 18px; color: var(--ink,#152b48); }
.rk-spot-item > span:nth-child(2) { display: grid; gap: 3px; }
.rk-spot-item small, .rk-rate-row small { font-size: .78rem; color: var(--muted,#52637a); }
.rk-spot-item > strong { margin-left: auto; white-space: nowrap; font-size: .85rem; color: var(--blue,#1751b5); }
.rk-spot-item:hover { background: var(--pale,#f3f7ff); }
.rk-side-guide { padding: 20px; }
.rk-side-guide p, .rk-breakdown p { margin-top: 8px; font-size: .9rem; line-height: 1.6; }
.rk-side-guide a { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 710; }
.rk-detail { max-width: 650px; }
.rk-detail.rk-card { padding: 24px; }
.rk-trail { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--muted,#52637a); font-size: .88rem; }
.rk-player-hero { display: flex; align-items: center; gap: 17px; background: var(--blue,#1751b5); border-radius: 17px; padding: 20px; color: white; }
.rk-player-hero h1 { margin: 2px 0; word-break: break-word; font-size: 1.85rem; letter-spacing: -.04em; line-height: 1.2; color: white; }
.rk-player-hero p { color: #e3edff; font-size: .88rem; }
.rk-actionline { display: flex; justify-content: flex-end; margin: 12px 0 18px; }
.rk-detail .rk-action { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--blue,#1751b5); border-radius: 9px; background: var(--blue,#1751b5); padding: 9px 14px; font-weight: 680; color: white; font-size: .9rem; }
.rk-detail .rk-action.secondary { background: #fff; color: var(--blue,#1751b5); }
.rk-breakdown { padding: 19px 20px; margin-top: 14px; }
.rk-detail-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 15px; }
.rk-detail-metrics .rk-stat { padding: 12px; min-width: 0; background: #f7f9fd; border: 0; border-radius: 9px; }
.rk-detail-metrics .rk-stat strong { font-size: 1.3rem; }
.rk-rate-row { display: flex; gap: 32px; margin-top: 13px; }
.rk-rate-row > div { display: grid; gap: 3px; }
.rk-match-link { display: flex; justify-content: space-between; margin-top: 12px; color: var(--blue,#1751b5); padding: 12px 14px; border: 1px solid var(--line,#dae2ee); border-radius: 9px; font-size: .9rem; }
@media (max-width: 940px) {
 .rk-wrap, .rk-detail { width: min(100% - 32px, 1120px); }
 .rk-grid { grid-template-columns: minmax(0,1fr) minmax(220px,.42fr); gap: 15px; }
 .rk-stats { gap: 6px; }
 .rk-stat { min-width: 85px; padding: 11px; }
}
@media (max-width: 740px) {
 .rk-grid { grid-template-columns: minmax(0,1fr); }
 .rk-overview { align-items: stretch; flex-direction: column; gap: 15px; margin: 20px 0; }
 .rk-stats { display: grid; grid-template-columns: repeat(3,1fr); }
 .rk-wrap, .rk-detail { margin-top: 20px; margin-bottom: 40px; }
 .rk-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
 .rk-wrap .rk-next { padding: 15px; gap: 10px; }
 .rk-next i { font-size: .76rem; padding: 8px 12px; }
 .rk-next > span > span { font-size: .8rem; }
 .rk-sidebar { grid-template-columns: 1fr; }
 .rk-tools { align-items: stretch; flex-direction: column; padding: 12px; gap: 9px; }
 .rk-tabs button { flex: 1; }
 .rk-search { width: 100%; }
 .rk-table th, .rk-table td { padding: 9px 4px; }
 .rk-table td:last-child, .rk-table th:last-child { padding-right: 8px; }
 .rk-table .rk-col-rank { min-width: 24px; width: 28px; }
 .rk-table .rk-col-name { width: auto; }
 .rk-table, .rk-table .rk-player { font-size: .81rem; }
 .rk-table .rk-player { gap: 5px; }
 .rk-table .rk-player .rk-name { white-space: normal; overflow-wrap: anywhere; }
 .rk-table .rk-me { display: none; }
 .rk-table .rk-avatar { width: 24px; height: 24px; font-size: .65rem; }
 .rk-table .rk-photo > * { max-width: 24px; max-height: 24px; }
 .rk-place { min-width: 20px; height: 20px; font-size: .75rem; }
 .rk-stat { min-width: 0; padding: 9px; }
 .rk-next small { font-size: .71rem; }
 .rk-detail-metrics { grid-template-columns: repeat(2,1fr); }
 .rk-match-link { gap: 8px; }
 .rk-trail { flex-wrap: wrap; }
}
.rk-roster { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; padding: 0; }
.rk-roster li { border-top: 1px solid var(--line,#dae2ee); }
.rk-roster li:nth-child(even) { border-left: 1px solid var(--line,#dae2ee); }
.rk-roster a { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 11px 15px; color: var(--ink,#152b48); }
.rk-roster a:hover { background: var(--pale,#f3f7ff); }
.rk-roster a:focus-visible { outline-offset: -3px; }
.rk-roster-name { display: grid; gap: 2px; min-width: 0; margin-right: auto; font-size: .94rem; line-height: 1.3; }
.rk-roster-name small { color: var(--muted,#52637a); font-size: .81rem; }
.rk-roster a > svg { flex: 0 0 auto; color: var(--muted,#52637a); }
.rk-roster-empty { padding: 20px; grid-column: 1 / -1; text-align: center; color: var(--muted,#52637a); }
.rk-official-points { color: var(--blue,#1751b5); font-size: .8rem; white-space: nowrap; }
.rk-tabs button small { display: block; font-weight: 550; line-height: 1.05; font-size: .72rem; color: var(--muted,#52637a); }
.rk-tools { flex-wrap: wrap; }
.rk-local-note { text-align: right; font-size: .82rem; color: var(--muted,#52637a); }
.rk-actionline:has(+ .rk-local-note) { margin-bottom: 5px; }
@media (max-width: 740px) {
 .rk-directory-stats { display: flex; }
 .rk-directory-stats .rk-stat { display: flex; align-items: center; gap: 9px; padding: 7px 12px; }
}
@media (max-width: 520px) {
 .rk-roster { grid-template-columns: 1fr; }
 .rk-roster li:nth-child(even) { border-left: 0; }
 .rk-roster a { min-height: 50px; }
 .rk-tabs button { padding-inline: 5px; font-size: .8rem; }
}
.rk-next {position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(104deg,#143e9f 0%,#1a52c7 51%,#2364db 100%)}
.rk-next::before{content:"";position:absolute;z-index:-1;right:20%;top:-85px;width:228px;height:263px;opacity:.58;transform:rotate(36deg) skewY(-6deg);border:2px solid #ffffff57;background:linear-gradient(transparent 23.9%,#ffffff55 24%,#ffffff55 24.7%,transparent 24.8%,transparent 49.5%,#ffffff70 49.6%,#ffffff70 50.4%,transparent 50.5%,transparent 75%,#ffffff55 75.1%,#ffffff55 75.8%,transparent 75.9%),linear-gradient(90deg,transparent 49.4%,#ffffff60 49.5%,#ffffff60 50.4%,transparent 50.5%) center / 100% 51% no-repeat;pointer-events:none}
.rk-next>span,.rk-next>i{position:relative}.rk-next>span>span strong{color:#fff;letter-spacing:.08em}
@media(max-width:740px){.rk-next::before{right:14%;opacity:.29;width:105px;height:176px;top:-55px}.rk-next>span>span{font-size:.78rem}}
.rk-club{overflow:hidden}.rk-club-identity{display:flex;align-items:center;gap:13px;padding:17px 18px 13px;background:#fff}.rk-club-identity img{object-fit:contain;border-radius:12px;mix-blend-mode:multiply}.rk-club-identity h2{font-size:1.26rem;color:var(--navy);margin:0 0 4px;letter-spacing:-.035em}.rk-club-identity span{font-size:.85rem;color:var(--muted)}.rk-club-membership{border-top:1px solid var(--line);padding:11px 18px;display:flex;align-items:center;justify-content:space-between;gap:8px}.rk-club-membership small,.rk-club-membership b{display:block}.rk-club-membership small{color:var(--muted);font-size:.78rem}.rk-club-membership b{color:var(--navy);font-size:.95rem;letter-spacing:.1em}.rk-club-membership a{font-size:.86rem;font-weight:730;padding:8px 12px;background:var(--pale);border-radius:8px}.rk-wrap .rk-live-banner{background:linear-gradient(100deg,#153f96,#1855ca 55%,#2769d5)}.rk-live-banner>span{min-width:0}.rk-live-banner>span>b,.rk-live-banner>span>span{overflow-wrap:anywhere}
@media(max-width:460px){.rk-live-banner i{padding:8px 10px;font-size:.77rem}.rk-wrap .rk-live-banner{gap:10px;padding:14px}.rk-live-banner>span>b{font-size:1.12rem}}
.rk-notes { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.rk-picker { display:flex; align-items:center; flex-wrap:wrap; gap:5px; font-size:.81rem; color:var(--muted,#52637a); }
.rk-picker select { appearance:none; min-height:36px; font:inherit; color:var(--ink,#152b48); border:1px solid var(--line,#dae2ee); border-radius:8px; padding:5px 29px 5px 9px; background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2352637a' stroke-width='1.5' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 9px center; }
.rk-mode { border-top:1px solid var(--line,#dae2ee); padding:10px 17px; text-align:right; }
.rk-mode button { padding:6px 0; border:0; background:transparent; color:var(--blue,#1751b5); font-size:.83rem; font-weight:650; }
.rk-mode button:hover { text-decoration:underline; }
@media(max-width:520px){.rk-notes{align-items:flex-start;flex-direction:column;gap:9px}.rk-picker select{font-size:.875rem}}
