/* The Leaderboards (kc-ladder.js), a pane on the Kill Clog panel as Settings are (Dylan 11/10, kc-ladder-pane.js): this
   sheet lives in the pane's own shadow root, so its plain names (.row, .num, .search-input) and the profile's never
   meet. The pane's place on the panel is the page's (kc-profile-chrome.css .ladder-pane); this is what's inside it. The
   page's fonts and colours (kc-colors.css) reach in as the custom properties and @font-faces they are. */
/* Cursor canon: the regular arrow everywhere, links included. */
*, a, button, input, select { cursor: default !important; }
input { caret-color: var(--kc2); }
/* The panel's column: the RuneLite side panel's 220 px between 10 px gutters, under the pane's 1 px rim, the type the
   leaderboards always had. It fills the pane, the board's window taking what the picker, search, tabs and pager leave,
   its well reaching the bottom: a short board, a raid's selects or a status line change the window, never the panel. */
.panel { box-sizing: border-box; height: 100%; display: flex; flex-direction: column; padding: 8px 10px; color: #fff;
  font-family: 'RuneScape Small', sans-serif; font-size: 16px; line-height: normal; }
/* The board's player count, and a thin board's word beside it (Dylan, 2026-10-06), over the rows. */
.meta { display: flex; justify-content: center; gap: 8px; min-height: 16px; margin-bottom: 4px; }
.sub { color: var(--game-orange); }
.thin { color: var(--kc3); }
.thin[hidden] { display: none; }
/* Each centered or end-placed word rounded up to an even width (Dylan 11/10: Hydra's "403 players", 59 px, centered at
   x.5 and blurred), so it starts on a whole pixel: the player count and a thin board's word, the pager's "1 / 36", and
   the picker's caret at the button's end. scripts/smoke-ladder-pixels.cjs reads every word on every board for it.
   Browsers without calc-size keep plain text. */
@supports (width: calc-size(max-content, round(up, size, 2px))) {
  .meta > *, .where-text, .caret { width: calc-size(max-content, round(up, size, 2px)); }
}
/* The home page's player search, as it looks there: the dark well lying flat on the chrome (Dylan 11/8, RuneLite's
   wells have no rim), the orange RuneScape text and the gray magnifier. Here it narrows the board to matching names. */
.search-wrap { display: flex; justify-content: center; margin-bottom: 8px; }
.search-container { position: relative; display: block; width: 220px; height: 30px; background: var(--kc-well-fill, #0e0503);
  box-sizing: border-box; }
.search-input { box-sizing: border-box; width: 100%; height: 100%; margin: 0; background: transparent; border: 0;
  border-radius: 0; color: var(--kc4); font-family: 'RuneScape', sans-serif; font-size: 16px;
  padding: 0 30px 0 31px; outline: none; }
.search-container:focus-within { box-shadow: inset 0 0 0 1px rgba(202, 255, 0, 0.22); }
.search-wrap .mag { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); pointer-events: none;
  width: 15px; height: 15px; }
.search-wrap .mag :is(circle, line) { stroke: rgba(125, 125, 125, 0.68); fill: none; stroke-width: 1.5; }
.search-container:focus-within .mag :is(circle, line) { stroke: rgba(150, 150, 150, 0.76); }
/* The tab row keeps its height before the script fills it in. */
.tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; min-height: 20px; }
.tab { display: flex; align-items: center; gap: 4px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--game-orange); font: inherit; padding: 2px 6px; }
/* Whole, even tabs (Dylan 11/8: the pixel font reads soft off a whole pixel): each icon in a whole 16 px box, fitted
   inside it, and each tab rounded up to an even width, so the centered row and every label in it start on whole
   pixels. A browser without calc-size keeps the plain widths. */
.tab img { height: 14px; width: 16px; object-fit: contain; }
@supports (width: calc-size(max-content, round(up, size, 2px))) { .tab { width: calc-size(max-content, round(up, size, 2px)); } }
.tab:is(:hover, :focus-visible), .tab.on { color: #fff; }
.tab.on { border-bottom-color: var(--game-orange); }
.tab:focus-visible { outline: 1px solid var(--kc2); outline-offset: 1px; }
/* The rows sit in the panel's text well, like its boss list, lying flat on the chrome (Dylan 11/8). The whole board
   scrolls through it, a page of 25 rows at a time, in what the panel leaves. The well's colour is the list's, so the
   scrolling box can reach past it. */
.rows-view { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto;
  scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--profile-scrollbar-rest, #382711) var(--profile-scrollbar-track, transparent); }
.rows { min-height: 100%; background: var(--kc-well-fill, #0e0503); }
.rows-view::-webkit-scrollbar { width: 8px; }
/* Beside the sidebar (a desktop; a phone has none) the board's scrollbar runs outside the frame on its track, as the
   profile's does (Dylan 11/8): the box reaches past the panel's padding and the pane's rim (10 + 1 px) to the track's
   far edge, its padding keeping the rows to the column, its bar the plugin's width. Chromium takes the bar's look from
   these ::-webkit-scrollbar rules only while the standard properties are left at auto. */
:host(:not([data-phone])) .rows-view { box-sizing: border-box; width: calc(100% + 11px + var(--panel-scrollbar));
  padding-right: 11px; }
:host(:not([data-phone])) .rows-view::-webkit-scrollbar { width: var(--panel-scrollbar); }
@supports selector(::-webkit-scrollbar) { .rows-view { scrollbar-width: auto; scrollbar-color: auto; } }
.rows-view::-webkit-scrollbar-track { background: var(--profile-scrollbar-track, transparent); }
.rows-view::-webkit-scrollbar-thumb { background: var(--profile-scrollbar-rest, #382711); }
/* The panel's own colours and rule (kc-profile-chrome.css), lit under the pointer: :hover and :active each on its own,
   since Chromium keeps a thumb rule written with :is() but never lights it (11/13). */
.rows-view::-webkit-scrollbar-thumb:hover,
.rows-view::-webkit-scrollbar-thumb:active { background: var(--profile-scrollbar-hover, #5a3c16); }
/* With a mouse the wheel stays in the list at its ends; a finger carries on to the page. */
@media (hover: hover) { .rows-view { overscroll-behavior: contain; } }
.rows { list-style: none; margin: 0; padding: 0; }
/* The whole row is the link to that player's profile, which opens in the panel's place (kc-ladder-pane.js). */
/* "1." then the badge (only when the account has one) and the name, all flowing from one even
   left inset; the count holds the right edge. */
/* Every row the same height, waiting or filled: a row of "--" stands as tall as one with its icons. */
.row-link { box-sizing: border-box; height: 22px; display: flex; align-items: center; gap: 4px; padding: 3px 6px 3px 4px;
  color: inherit; text-decoration: none; }
.row-link:focus-visible { outline: 1px solid var(--kc2); outline-offset: -1px; }
/* The player a card's PB link came from. */
.row.me .row-link { outline: 1px solid var(--kc2); outline-offset: -1px; background: rgba(202, 255, 0, 0.06); }
/* The profile grid's tint hover, on the whole row. */
@media (hover: hover) { a.row-link:hover { background: rgba(255, 173, 0, 0.08); } }
/* Ranks sit right-aligned in one column as wide as "999." (24 px), so every rank ends at the same x. */
.rank { flex: none; min-width: 26px; text-align: right; color: var(--game-orange); }
.badge { flex: none; height: 14px; width: 14px; object-fit: contain; }
/* Names are white, the one exception to the four kc colors, so the player reads first. */
.name { flex: 1 1 auto; min-width: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A waiting row's "--" isn't a name, so it keeps the orange. */
.row.dormant .name { color: var(--game-orange); }
.num { color: var(--game-orange); }
/* A hovered or focused row lights its name and count in the accent. */
a.row-link:is(:hover, :focus-visible) :is(.name, .num) { color: var(--kc2); }
.count { flex: none; margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tier { width: 16px; height: 16px; object-fit: contain; }
/* The game's own check, left of a PB the game itself stated; every PB row keeps its slot. */
.pb-check { flex: none; width: 13px; height: 13px; image-rendering: pixelated; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px 0 0;
  color: var(--game-orange); }
.pager[hidden] { display: none; }
/* The page arrows are chevrons in the profile's menu-button browns, a step lighter than the chrome
   (--profile-chrome-menu, then the hamburger's hover and pressed), drawn in crisp 2 px strokes like its bars. */
.pager button { display: flex; align-items: center; background: none; border: 0; color: #5a3c16; font: inherit;
  padding: 4px 8px; transition: color 0.15s; }
.pager button svg { display: block; shape-rendering: crispEdges; }
.pager button:is(:hover, :focus-visible) { color: #7a531f; }
.pager button:active { color: #9a661f; }
.pager button:focus-visible { outline: 1px solid var(--kc2); outline-offset: 1px; }
.pager button.off { visibility: hidden; }
.where { min-width: 56px; display: flex; justify-content: center; }
.status { text-align: center; color: var(--game-orange); }
.status:empty { display: none; }
/* Said to screen readers only, while the "--" rows show the wait. */
.status.quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The board picker: the search well's look, its face the board shown, opening onto every board. */
.picker { position: relative; display: flex; justify-content: center; margin-bottom: 6px; }
.board-button { box-sizing: border-box; width: 220px; height: 30px; display: flex; align-items: center; gap: 6px;
  padding: 0 8px; background: var(--kc-well-fill, #0e0503); border: 0; color: var(--kc4);
  font-family: 'RuneScape', sans-serif; font-size: 16px; text-align: left; }
.board-button:is(:hover, :focus-visible) .board-name { color: #fff; }
.board-button:focus-visible { outline: 1px solid var(--kc2); outline-offset: 1px; }
.board-icon, .board-item-icon { flex: none; width: 18px; height: 18px; object-fit: contain; }
.board-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { flex: none; font-size: 10px; color: var(--game-orange); }
.board-menu { position: absolute; top: 31px; left: 50%; transform: translateX(-50%); z-index: 3; width: 220px;
  box-sizing: border-box; background: var(--kc-well-fill, #0e0503); border: 1px solid rgba(255, 173, 0, 0.32);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6); }
.board-menu[hidden] { display: none; }
.board-filter-wrap { position: relative; }
.board-filter-wrap .mag { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); pointer-events: none;
  width: 15px; height: 15px; }
.board-filter-wrap .mag :is(circle, line) { stroke: rgba(125, 125, 125, 0.68); fill: none; stroke-width: 1.5; }
.board-filter { box-sizing: border-box; width: 100%; height: 28px; margin: 0; padding: 0 8px 0 31px; background: transparent;
  border: 0; border-bottom: 1px solid rgba(255, 173, 0, 0.18); color: var(--kc4); font-family: 'RuneScape', sans-serif;
  font-size: 16px; outline: none; }
/* The board list scrolls like the rows: the boss well's thin scrollbar. */
.board-list { list-style: none; margin: 0; padding: 0; max-height: calc(12 * 22px); overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--profile-scrollbar-rest, #382711) var(--profile-scrollbar-track, transparent); }
.board-list::-webkit-scrollbar { width: 8px; }
.board-list::-webkit-scrollbar-track { background: var(--profile-scrollbar-track, transparent); }
.board-list::-webkit-scrollbar-thumb { background: var(--profile-scrollbar-rest, #382711); }
/* The panel's own colours and rule (kc-profile-chrome.css), lit under the pointer: :hover and :active each on its own,
   since Chromium keeps a thumb rule written with :is() but never lights it (11/13). */
.board-list::-webkit-scrollbar-thumb:hover,
.board-list::-webkit-scrollbar-thumb:active { background: var(--profile-scrollbar-hover, #5a3c16); }
.board-pick { box-sizing: border-box; width: 100%; height: 22px; display: flex; align-items: center; gap: 6px;
  padding: 2px 6px; background: none; border: 0; color: var(--game-orange); font: inherit; text-align: left; }
.board-pick:is(:hover, :focus-visible), .board-pick.on { color: #fff; }
@media (hover: hover) { .board-pick:hover { background: rgba(255, 173, 0, 0.08); } }
.board-pick:focus-visible { outline: 1px solid var(--kc2); outline-offset: -1px; }
.board-item-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-item-count { flex: none; }
/* A raid's mode and team size, each only when the game has more than one board for it. */
.variants { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.variants[hidden], .variants select[hidden] { display: none; }
.variants select { box-sizing: border-box; flex: 1 1 0; min-width: 0; max-width: 220px; height: 24px; padding: 0 4px;
  background: var(--kc-well-fill, #0e0503); border: 1px solid rgba(255, 173, 0, 0.18); color: var(--game-orange);
  font: inherit; }
.variants select:focus-visible { outline: 1px solid var(--kc2); outline-offset: 1px; }
