.best-page{display:none;min-width:0;font-family:ShopInter,system-ui,sans-serif}
html[data-page=best] .best-page{display:block}
html[data-page=best] body>main>:not(.best-page){display:none}
.best-heading{margin-bottom:18px}
.best-heading h1{font-size:34px;line-height:1.1;letter-spacing:-1.3px;margin:9px 0 10px}
.best-heading p{font-size:12px;line-height:1.6;color:var(--shop-muted);margin:0;max-width:62ch}
.best-controls{display:grid;gap:12px;margin-bottom:16px}
/* 15 positions = 5 x 3, full rows at every width. */
.best-positions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
:is(body>main) .best-positions button{min-width:0;height:36px;padding:0 4px;border:1px solid var(--shop-stroke);border-radius:10px;background:#ffffff06;color:var(--shop-text);font:600 13px/1 ShopInter,system-ui,sans-serif;cursor:pointer}
:is(body>main) .best-positions button[aria-pressed=true]{border-color:transparent;background:linear-gradient(135deg,var(--shop-blue),var(--shop-blue-2)) border-box;color:#fff}
.best-filters{display:grid;grid-template-columns:auto auto;justify-content:space-between;gap:10px 12px;align-items:center}
.best-mode{display:inline-grid;grid-auto-flow:column;padding:3px;border:1px solid var(--shop-stroke);border-radius:11px;background:#0f172af5}
:is(body>main) .best-mode button{height:36px;padding:0 14px;white-space:nowrap;border:0;border-radius:8px;background:transparent;color:var(--shop-muted);font:600 13px/1 ShopInter,system-ui,sans-serif;cursor:pointer}
:is(body>main) .best-mode button[aria-pressed=true]{background:#6f7cff2e;color:var(--shop-text)}
.best-filters .players-rating-range{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1.1fr) repeat(2,minmax(0,1fr))}
:is(body>main) .best-reset{height:44px;padding:0 12px;border:0;background:none;color:var(--shop-muted);font:500 13px ShopInter,system-ui,sans-serif;cursor:pointer}
:is(body>main) .best-reset:hover{color:var(--shop-text)}
.best-results{scroll-margin-top:95px}
.best-results .results-line{display:flex;align-items:center;min-height:20px;margin-bottom:10px;font-size:12px;color:var(--shop-muted)}
#bestError{margin:8px 0;color:#ff8a8a;font-size:13px}
:is(body>main) .best-reset{white-space:nowrap}
@media(max-width:350px){:is(body>main) .best-mode button{padding:0 10px;font-size:12px}:is(body>main) .best-reset{padding:0 4px}.best-heading h1{font-size:29px}}
