/* ---------------------------------------------------------------------------
   Contest Review page (_contestReview.cshtml / fantasysportsco.contestreview.js).

   Colours come from the site theme tokens (fantasysportsco.theme.css), so light and dark both work. Gold
   (--fsc-gold) is only for the winner and #1, green (--fsc-green) only for cashing. What is selected: a CHOICE
   (site, contest type, position, window) fills solid accent with the invert text; a TAB (Contests / Findings, the
   contest's sections) is tinted with a bar along its bottom, as in the Sims view.

   The DNN skin restyles BARE elements (div/p/td/th/li: Lato 15px 300 #666; bootstrap tables and buttons) and
   .mainContentArea sets white-space: nowrap, so every element here states its own text settings (the reset block
   below) and text that wraps says white-space: normal. Phone layouts follow the page's own width
   (container query on .crPage), not the window's.
   --------------------------------------------------------------------------- */

/* ---- the page root and the skin reset ---- */
.crPage {
    container: crpage / inline-size;
    max-width: 1280px; margin: 0 auto; padding: 0 16px 32px;
    font-family: var(--fsc-font-body); font-size: var(--fsc-fs-base); font-weight: 400; line-height: 1.45;
    color: var(--fsc-text); text-align: left; white-space: normal;
}
.crPage *, .crPage *::before, .crPage *::after { box-sizing: border-box; }
/* The skin styles bare elements (td, div, p, table, li: Lato 300 15px grey; h2/h3; button/select; ul li) at
   specificity 0-0-1 / 0-0-2. :where() keeps this reset at 0-1-0: enough to beat those, while every .crX rule
   below (also 0-1-0, later in the file) still wins over it. */
.crPage :where(div, p, span, section, aside, ul, li, label, table, thead, tbody, tr, td, th, button, select, h2, h3, strong, b) {
    font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit;
    letter-spacing: inherit; text-decoration: none;
}
/* links: the skin's a:visited / a:hover are 0-1-1, so this one stays stronger; a link's own colour needs !important */
.crPage a, .crPage a:link, .crPage a:visited, .crPage a:hover, .crPage a:focus, .crPage a:active {
    font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit;
    letter-spacing: inherit; text-decoration: none;
}
.crPage :where(p, ul, li, h2, h3) { margin: 0; padding: 0; }
.crPage :where(li) { list-style: none; }
.crPage :where(label) { display: inline; max-width: none; margin: 0; }
.crPage :where(button) { margin: 0; cursor: pointer; text-transform: none; }
.crPage :where(button:disabled) { cursor: default; }
.crPage button:focus-visible, .crPage select:focus-visible, .crPage a:focus-visible, .crPage .crTip:focus-visible { outline: 2px solid var(--fsc-blue) !important; outline-offset: 2px; }
/* text only screen readers get (the labels key's meanings) */
.crPage .crSr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the panel's title takes focus only so screen readers start there; it isn't a control, so no ring */
.crPage .crDrillTitle:focus { outline: none !important; }
.crPage img { border: 0; }

/* ---- hero (the Props page's rg-hero, blue accent) ---- */
.rg-hero { text-align: center; margin: 0 auto 20px; padding: 30px 16px 0; max-width: 880px; white-space: normal; }
.rg-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(180deg, #3B82F6 0%, #1D4ED8 100%);
    color: #fff; padding: 7px 16px; border-radius: 100px;
    font-family: 'Heebo', 'Heebo Fallback'; font-size: 11px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(29, 78, 216, .3); margin-bottom: 18px;
}
.rg-hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex-shrink: 0; animation: cr-pulse 1.4s ease-in-out infinite; }
.rg-hero-title {
    display: block; font-family: 'Heebo', 'Heebo Fallback'; font-size: 50px; font-weight: 900;
    color: var(--fsc-text); letter-spacing: -.028em; line-height: 1.05; margin: 0 0 14px; padding: 0; text-align: center;
}
.rg-hero-title::before { content: none !important; display: none !important; }
.rg-hero-accent { color: var(--fsc-blue); background: linear-gradient(180deg, transparent 62%, var(--fsc-blue-soft) 62%); padding: 0 2px; }
.rg-hero-for { display: block; font-size: .42em; font-weight: 700; color: var(--fsc-text-soft); letter-spacing: -.005em; margin-top: 10px; line-height: 1.3; }
@keyframes cr-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) { .rg-hero-badge-dot { animation: none; } }
@media (max-width: 768px) { .rg-hero-title { font-size: 34px; } .rg-hero-for { font-size: .5em; } }
@media (max-width: 480px) { .rg-hero-title { font-size: 27px; } }
/* the sport selector in the title (the Props page's nfSportWrap) */
.nfSportWrap { position: relative; display: inline-block; }
button.rg-hero-accent {
    appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: .12em;
    border: none; margin: 0; font: inherit; letter-spacing: inherit; line-height: inherit; cursor: pointer;
}
button.rg-hero-accent svg { width: .42em; height: .42em; flex-shrink: 0; transition: transform .18s ease; }
button.rg-hero-accent.is-open svg { transform: rotate(180deg); }
.nfSportDropdown {
    position: absolute; top: calc(100% + 8px); left: 50%; min-width: 190px; padding: 6px 0; z-index: 120;
    background: var(--fsc-panel, #fff); border: 1px solid var(--fsc-line-strong, #CBD2DC); border-radius: 12px;
    box-shadow: var(--fsc-shadow, 0 10px 24px rgba(0, 0, 0, .12));
    /* closed = hidden too, so its links leave the Tab order and screen readers (visibility waits for the fade) */
    opacity: 0; visibility: hidden; transform: translate(-50%, -4px); pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
    text-align: left; white-space: normal;
}
.nfSportDropdown.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; transition-delay: 0s; }
/* .crPage in front: the page's link reset (.crPage a:link, 0-2-1) would otherwise hand these the h1's 50px / 900 */
.crPage .nfSportDropdown a {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 9px 16px; text-decoration: none;
    font-family: 'Heebo', 'Heebo Fallback'; font-size: 14px; font-weight: 600; letter-spacing: normal; line-height: 1.3; color: var(--fsc-text, #16202E);
}
.crPage .nfSportDropdown a:hover { background: var(--fsc-panel-2, #F1F5F9); color: var(--fsc-blue, #2563EB); }
.crPage .nfSportDropdown a.is-current { background: var(--fsc-blue-soft, #F0F4FF); color: var(--fsc-blue, #2563EB); font-weight: 700; }
.nfSportDropdown a.is-current::after { content: '\2713'; font-size: 12px; margin-left: auto; }
.nfSportIco { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.nfSportIcoD { display: none; }
[data-fsc-theme="dark"] .nfSportIcoL { display: none; }
[data-fsc-theme="dark"] .nfSportIcoD { display: inline-block; }

/* ---- the example-data banner ---- */
.crSample {
    display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 16px; padding: 14px 18px;
    background: var(--fsc-gold-soft); border: 1px solid var(--fsc-gold); border-radius: var(--fsc-radius);
}
.crSampleText { flex: 1 1 320px; min-width: 0; }
.crSampleTitle { font-size: var(--fsc-fs-md); font-weight: 800; line-height: 1.3; color: var(--fsc-text); }
.crSampleBody { margin-top: 2px; font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text-soft); }
/* a.crSampleBtn behind .crPage: the link reset (0-2-1) would otherwise take its size and weight */
.crPage a.crSampleBtn {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: var(--fsc-radius-sm);
    background: var(--fsc-blue); color: var(--fsc-text-invert) !important; font-size: var(--fsc-fs-sm); font-weight: 800; white-space: nowrap;
}
.crSampleBtn:hover { filter: brightness(1.08); }

/* ---- tabs (tinted, bar along the bottom) and choices (solid when on) ---- */
.crTabs {
    display: flex; gap: 2px; max-width: 100%; overflow-x: auto; margin: 0 0 14px; padding: 3px;
    background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); scrollbar-width: none;
}
.crTabs::-webkit-scrollbar { display: none; }
.crTabsMain { display: inline-flex; }
.crTab {
    flex: 0 0 auto; min-height: 36px; padding: 6px 18px; background: transparent; border: 0; border-radius: 6px;
    font-size: var(--fsc-fs-base); font-weight: 700; line-height: 1.2; color: var(--fsc-text-soft); white-space: nowrap;
}
.crTab:hover { color: var(--fsc-text); background: var(--fsc-panel); }
.crTab.is-on, .crTab.is-on:hover { color: var(--fsc-text); background: var(--fsc-blue-soft); box-shadow: inset 0 -3px 0 var(--fsc-blue); }
.crSeg { display: inline-flex; gap: 2px; padding: 3px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); }
.crSegBtn {
    min-height: 32px; padding: 4px 14px; background: transparent; border: 0; border-radius: 6px;
    font-size: var(--fsc-fs-sm); font-weight: 700; line-height: 1.2; color: var(--fsc-text-soft); white-space: nowrap;
}
.crSegBtn:hover { color: var(--fsc-text); background: var(--fsc-blue-soft); }
.crSegBtn.is-on, .crSegBtn.is-on:hover { color: var(--fsc-text-invert); background: var(--fsc-blue); }
.crChips { display: flex; flex-wrap: wrap; gap: 6px; }
.crChip {
    min-height: 32px; padding: 4px 12px; background: var(--fsc-panel); border: 1px solid var(--fsc-line-strong); border-radius: 999px;
    font-size: var(--fsc-fs-sm); font-weight: 700; line-height: 1.2; color: var(--fsc-text-soft); white-space: nowrap;
}
.crChip:hover { color: var(--fsc-blue); border-color: var(--fsc-blue); }
.crChip.is-on, .crChip.is-on:hover { color: var(--fsc-text-invert); background: var(--fsc-blue); border-color: var(--fsc-blue); }

/* ---- cards, bars, fields ---- */
.crCard {
    margin: 0 0 14px; padding: 14px 16px; background: var(--fsc-panel); border: 1px solid var(--fsc-line);
    border-radius: var(--fsc-radius); box-shadow: var(--fsc-shadow-sm);
}
.crH { margin: 0 0 10px; font-size: var(--fsc-fs-md); font-weight: 800; line-height: 1.3; color: var(--fsc-text); }
.crHSub { margin-left: 6px; font-size: var(--fsc-fs-sm); font-weight: 500; color: var(--fsc-text-faint); }
.crBar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; }
/* under the list's filters: contests are generally reviewed the day after they're played */
.crListNote { margin: -4px 0 12px; font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text-soft); }
.crPush { margin-left: auto; }
.crField { display: inline-flex; align-items: center; gap: 8px; }
.crLbl { font-size: var(--fsc-fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fsc-text-faint); }
.crSelect {
    height: 36px; min-width: 0; padding: 4px 10px; background: var(--fsc-panel); color: var(--fsc-text);
    border: 1px solid var(--fsc-line-strong); border-radius: var(--fsc-radius-sm); font-size: var(--fsc-fs-sm); font-weight: 600;
}
.crCount { font-size: var(--fsc-fs-sm); color: var(--fsc-text-faint); white-space: nowrap; }
.crMuted { font-size: var(--fsc-fs-sm); color: var(--fsc-text-faint); }
.crFoot { margin-top: 10px; font-size: var(--fsc-fs-xs); line-height: 1.5; color: var(--fsc-text-faint); }
.crState { display: flex; align-items: center; gap: 8px; padding: 16px 2px; font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); }
.crErr {
    margin: 0 0 12px; padding: 10px 14px; font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text);
    background: var(--fsc-danger-soft); border: 1px solid var(--fsc-danger); border-radius: var(--fsc-radius-sm);
}
.crLinkBtn {
    padding: 0; background: transparent; border: 0; font-size: var(--fsc-fs-sm); font-weight: 700; color: var(--fsc-blue);
    text-decoration: underline; text-underline-offset: 2px;
}
.crMore { display: inline-block; margin-top: 10px; }
.crSpin { width: 14px; height: 14px; flex: 0 0 auto; border: 2px solid var(--fsc-line-strong); border-top-color: var(--fsc-blue); border-radius: 50%; animation: cr-spin .8s linear infinite; }
@keyframes cr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .crSpin { animation-duration: 2.4s; } }
.crNotes { margin: 0 0 14px; }
.crNote { margin: 0 0 6px; padding: 8px 12px; font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text-soft); background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); }
.crLogo { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; }
.crLogoL { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
/* (also said with the classes they sit on: .crStatV / .crTileV come later and set the text colour) */
.crGoldT, .crStatV.crGoldT { color: var(--fsc-gold); }
.crCashT, .crStatV.crCashT, .crTileV.crCashT { color: var(--fsc-green); }
.crWon { font-size: var(--fsc-fs-sm); font-weight: 800; color: var(--fsc-green); white-space: nowrap; }
.crUp { color: var(--fsc-green); font-weight: 700; }
.crDown { color: var(--fsc-danger); font-weight: 700; }
.crSiteBadge {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 30px; height: 22px; padding: 0 6px;
    border-radius: 6px; font-size: var(--fsc-fs-xs); font-weight: 800; letter-spacing: .04em; color: #fff; background: #53D337;
}
/* dark enough for white 11px text (AA 4.5:1) */
.crSite-draftkings { background: #157A33; }
.crSite-fanduel { background: #0A6ED1; }
.crMode { margin-left: 8px; padding: 1px 8px; border: 1px solid var(--fsc-line-strong); border-radius: 999px; font-size: var(--fsc-fs-xs); font-weight: 700; color: var(--fsc-text-soft); vertical-align: 2px; }

/* ---- rows (clickable list items) ---- */
.crRows { display: flex; flex-direction: column; }
.crRow {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 6px; text-align: left;
    background: transparent; border: 0; border-top: 1px solid var(--fsc-line); border-radius: 0; color: var(--fsc-text);
}
.crRows .crRow:first-child, .crCard > .crH + .crRow, .crDSecH + .crRow { border-top: 0; }
.crRow:hover:not(:disabled) { background: var(--fsc-panel-2); }
.crCRowMain { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.crCRowName { font-size: var(--fsc-fs-base); font-weight: 700; line-height: 1.3; color: var(--fsc-text); overflow-wrap: anywhere; }
.crCRowSub { font-size: var(--fsc-fs-sm); line-height: 1.4; color: var(--fsc-text-faint); }
.crCRowWait { color: var(--fsc-over); font-weight: 600; }
.crCRowStats { display: flex; gap: 18px; flex: 0 0 auto; }
.crStat { display: flex; flex-direction: column; align-items: flex-end; min-width: 54px; }
.crStatWide { min-width: 76px; }
.crStatV { font-size: var(--fsc-fs-base); font-weight: 800; line-height: 1.2; color: var(--fsc-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.crStatL { font-size: var(--fsc-fs-xs); color: var(--fsc-text-faint); white-space: nowrap; }
/* the contest list's number columns: fixed widths, so the sort headers above line up with every row (a wider
   value, a $10,000,000 prize pool, spills left into the gap) */
.crCRowStats .crStat, .crSortNum { width: 72px; min-width: 72px; }
.crCRowStats .crStatWide, .crSortNum.crSortWide { width: 96px; min-width: 96px; }

/* ---- the contest list's sort headers ---- */
.crSortHead { display: flex; align-items: flex-end; gap: 12px; padding: 0 6px 6px; border-bottom: 1px solid var(--fsc-line); }
.crSortLbl { display: none; }
/* the left part sits over the contest names: past the site badge (30px) and the row's gap (12px) */
.crSortLead { display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; padding-left: 36px; }
.crSortStats { display: flex; flex: 0 0 auto; gap: 18px; }
.crSortBtn {
    display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 2px 6px; background: transparent; border: 0; border-radius: 6px;
    font-size: var(--fsc-fs-xs); font-weight: 800; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; text-align: left;
    color: var(--fsc-text-soft); white-space: nowrap; cursor: pointer;
}
.crSortBtn:hover { color: var(--fsc-text); background: var(--fsc-panel-2); }
/* the active header: colour and a bar under it (not colour alone) */
.crSortBtn.is-on, .crSortBtn.is-on:hover { color: var(--fsc-blue); box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
:root:not([data-fsc-theme="dark"]) .crSortBtn.is-on { color: #1D4ED8; }
.crPage .crSortLbl { color: var(--fsc-text-soft); }
.crSortNum { justify-content: flex-end; padding: 2px 0; text-align: right; }
.crSortArr { font-size: 9px; line-height: 1; }
.crRank {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 46px; height: 26px; padding: 0 6px;
    border-radius: 6px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); font-size: var(--fsc-fs-sm); font-weight: 800; color: var(--fsc-text-soft);
    font-variant-numeric: tabular-nums;
}
.crRank1 { color: #241900; background: var(--fsc-gold); border-color: var(--fsc-gold); }
[data-fsc-theme="dark"] .crRank1 { color: #1b1300; }
.crLuMain { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.crLuWho { font-size: var(--fsc-fs-base); font-weight: 700; line-height: 1.3; color: var(--fsc-text); overflow-wrap: anywhere; }
.crLuSub, .crLuSub2 { font-size: var(--fsc-fs-sm); line-height: 1.4; color: var(--fsc-text-faint); overflow-wrap: anywhere; }
.crLuEnd { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.crLuPts { font-size: var(--fsc-fs-base); font-weight: 800; color: var(--fsc-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.crDupe { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); font-size: var(--fsc-fs-xs); font-weight: 700; color: var(--fsc-text-soft); }
.crMoreBtn {
    display: block; width: 100%; min-height: 40px; margin-top: 10px; padding: 8px 12px; background: var(--fsc-panel-2);
    border: 1px solid var(--fsc-line-strong); border-radius: var(--fsc-radius-sm); font-size: var(--fsc-fs-sm); font-weight: 700; color: var(--fsc-blue);
}
.crMoreBtn:hover { border-color: var(--fsc-blue); }
.crFilter {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 12px; border-radius: 999px;
    background: var(--fsc-blue-soft); border: 1px solid var(--fsc-blue); font-size: var(--fsc-fs-sm); font-weight: 700; color: var(--fsc-text);
}
.crFilterX { min-width: 28px; min-height: 28px; padding: 0; background: transparent; border: 0; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--fsc-text-soft); }
.crFilterX:hover { color: var(--fsc-text); background: var(--fsc-panel); }

/* ---- the contest header ---- */
.crCHead { margin: 0 0 12px; }
.crBack { padding: 4px 0; background: transparent; border: 0; font-size: var(--fsc-fs-sm); font-weight: 700; color: var(--fsc-blue); }
.crBack:hover { text-decoration: underline; text-underline-offset: 2px; }
.crCTitle { margin: 4px 0 4px; font-size: 24px; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; color: var(--fsc-text); overflow-wrap: anywhere; }
.crCSub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); }
.crCSub .crSiteBadge { margin-right: 4px; }

/* ---- two columns on a wide page ---- */
.crCols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
.crCol { min-width: 0; }
@container crpage (min-width: 900px) {
    .crCols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    /* the overview with the perfect lineup: the right column holds two lineups side by side, so it gets more room */
    .crCols.crColsVs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

/* ---- takeaways ---- */
.crTakes { display: flex; flex-direction: column; gap: 6px; }
.crTake {
    display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px; text-align: left;
    background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); color: var(--fsc-text);
}
.crTake:hover:not(:disabled) { border-color: var(--fsc-blue); }
.crTake:disabled { opacity: 1; }
.crTakeIco {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
    background: var(--fsc-blue-soft); color: var(--fsc-blue); font-size: 13px; font-weight: 800; line-height: 1;
}
.crTakeGold .crTakeIco { background: var(--fsc-gold-soft); color: var(--fsc-gold); }
.crTake .crLogo { margin-top: 1px; }
.crTakeText { flex: 1 1 auto; min-width: 0; font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text); }

/* ---- the winning lineup / a lineup's slots ---- */
.crWinTop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.crTrophy { font-size: 18px; line-height: 1; }
.crTrophyS { margin-left: 6px; font-size: 12px; }
.crWinWho { min-width: 0; font-size: var(--fsc-fs-base); font-weight: 800; color: var(--fsc-text); overflow-wrap: anywhere; }
.crWinPts { font-size: var(--fsc-fs-base); font-weight: 800; color: var(--fsc-gold); font-variant-numeric: tabular-nums; }
.crLuFacts { margin: 0 0 8px; font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); }
.crSlots { display: flex; flex-direction: column; border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); overflow: hidden; }
.crSlot {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; text-align: left;
    background: var(--fsc-panel); border: 0; border-top: 1px solid var(--fsc-line); border-radius: 0; color: var(--fsc-text);
}
.crSlot:first-child { border-top: 0; }
.crSlot:hover { background: var(--fsc-panel-2); }
.crSlotPos { flex: 0 0 auto; width: 40px; white-space: nowrap; font-size: var(--fsc-fs-xs); font-weight: 800; letter-spacing: .04em; color: var(--fsc-text-faint); }
.crSlotMain { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.crSlotName { font-size: var(--fsc-fs-base); font-weight: 700; line-height: 1.3; color: var(--fsc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crSlotSub { font-size: var(--fsc-fs-xs); line-height: 1.4; color: var(--fsc-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crSlotPts { flex: 0 0 auto; font-size: var(--fsc-fs-base); font-weight: 800; color: var(--fsc-text); font-variant-numeric: tabular-nums; }
.crSlot:disabled { cursor: default; }
.crSlot:disabled:hover { background: var(--fsc-panel); }
.crSlotTossed .crSlotName, .crSlotTossed .crSlotPts { color: var(--fsc-text-faint); text-decoration: line-through; }

/* ---- winner vs the perfect lineup: side by side when the card is wide enough, else a Winner | Perfect switch.
   The perfect lineup is blue (gold stays the winner's). ---- */
.crVsCard { container: crvs / inline-size; }
.crVsSum { margin: -2px 0 10px; font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text-soft); }
.crVsSum b { font-weight: 800; color: var(--fsc-text); }
.crVsSwitch { display: none; margin: 0 0 10px; }
/* side by side: both columns span the same four rows (label, head, slots, foot) through a subgrid, so the taller head
   (a long username, a prize, the Leaderboard link wrapping) sets one height for both and the slot rows stay level.
   Without subgrid a column is just its items stacked, as before. */
.crVs2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(4, auto); column-gap: 12px; }
.crVs2 .crVsCol { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; align-content: start; min-width: 0; }
.crVs2 .crWinTop { align-content: flex-start; }
.crVs2 .crSlots, .crVs2 .crPerfFoot { align-self: start; }
.crVs2 .crMore { align-self: start; justify-self: start; }
.crVsLabel {
    display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 0 0 6px; border-bottom: 2px solid var(--fsc-gold);
    font-size: var(--fsc-fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; color: var(--fsc-gold);
}
.crVsLabel .crTrophy { font-size: 14px; }
.crVsPerf .crVsLabel { border-bottom-color: var(--fsc-blue); color: var(--fsc-blue); }
.crVsPerf .crVsLabel .crPerfMark { font-size: 12px; }
.crVs2 .crSlotPos { width: 34px; }
.crVs2 .crSlot { gap: 8px; padding: 6px 8px; }
.crPerfMark { font-size: 14px; line-height: 1; color: var(--fsc-blue); }
.crPerfPts { font-size: var(--fsc-fs-base); font-weight: 800; color: var(--fsc-blue); font-variant-numeric: tabular-nums; }
.crPerfTop { min-height: 24px; }
.crShared { display: inline-block; margin-left: 6px; font-size: var(--fsc-fs-xs); font-weight: 800; color: var(--fsc-blue); }
.crPerfFoot { margin-top: 8px; font-size: var(--fsc-fs-xs); line-height: 1.5; color: var(--fsc-text-faint); white-space: normal; }
.crPage a.crPerfLink { color: var(--fsc-blue) !important; font-weight: 700; }
.crPerfLine { margin-top: 6px; font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); }
.crPerfLine b { color: var(--fsc-blue); font-weight: 800; }
.crPerfS { margin-left: 6px; font-size: 11px; color: var(--fsc-blue); }
.crDWin.crDPerf { color: var(--fsc-blue); }
@container crvs (max-width: 539px) {
    .crVsSwitch { display: inline-flex; }
    .crVs2 { display: block; }
    .crVs2 .crVsCol { display: block; }
    .crVs2 .crVsPerf { display: none; }
    .crVs2.crVsShowPerfect .crVsWin { display: none; }
    .crVs2.crVsShowPerfect .crVsPerf { display: block; }
    .crVs2 .crSlotPos { width: 40px; }
}

/* ---- scores card: three numbers and the scale ---- */
.crScoreNums { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.crScoreNum { display: flex; flex-direction: column; }
.crScoreNum:last-child { align-items: flex-end; }
.crScoreLbl { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fsc-fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fsc-text-faint); }
.crScoreVal { font-size: 22px; font-weight: 900; line-height: 1.2; color: var(--fsc-text); font-variant-numeric: tabular-nums; }
.crDot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.crDotAvg { background: var(--fsc-text-faint); }
.crDotCash { background: var(--fsc-green); }
.crDotWin { background: var(--fsc-gold); }
.crScale { position: relative; height: 10px; margin: 4px 6px 0; background: var(--fsc-line); border-radius: 999px; }
.crScalePaid { position: absolute; top: 0; bottom: 0; background: var(--fsc-green); border-radius: 0 999px 999px 0; opacity: .85; }
.crMark { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--fsc-panel); }
.crMarkAvg { background: var(--fsc-text-faint); }
.crMarkCash { background: var(--fsc-green); }
.crMarkWin { background: var(--fsc-gold); }
.crScaleEnds { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--fsc-fs-xs); color: var(--fsc-text-faint); font-variant-numeric: tabular-nums; }
.crFacts { margin-top: 10px; font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); }

/* ---- disclosures ---- */
.crDisc { padding-top: 6px; padding-bottom: 6px; }
.crDiscH {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 0; text-align: left;
    background: transparent; border: 0; border-top: 1px solid var(--fsc-line); border-radius: 0; color: var(--fsc-text);
}
.crDisc .crDiscH:first-child { border-top: 0; }
.crDiscT { flex: 1 1 auto; font-size: var(--fsc-fs-base); font-weight: 700; }
.crDiscV { font-size: var(--fsc-fs-sm); font-weight: 700; color: var(--fsc-text-soft); }
.crCaret { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid currentColor; transition: transform .15s ease; }
.crCaret.is-open { transform: rotate(90deg); }
.crDiscBody { padding: 0 0 8px 14px; }
.crKV { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: var(--fsc-fs-sm); border-top: 1px dashed var(--fsc-line); }
.crKV:first-child { border-top: 0; }
.crK { color: var(--fsc-text-soft); }
.crV { font-weight: 700; color: var(--fsc-text); text-align: right; overflow-wrap: anywhere; }

/* ---- tables ---- */
.crTblWrap { max-width: 100%; overflow-x: auto; }
.crTable { width: 100%; border-collapse: collapse; background: transparent; font-size: var(--fsc-fs-sm); font-variant-numeric: tabular-nums; }
.crTable th {
    padding: 6px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--fsc-line-strong);
    font-size: var(--fsc-fs-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--fsc-text-faint); background: transparent;
}
.crTable td { padding: 7px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--fsc-line); color: var(--fsc-text); background: transparent; vertical-align: middle; }
.crTable tbody tr:last-child td { border-bottom: 0; }
/* cell colours (.crTable td above is 0-1-1, so a cell's own colour class has to say td too) */
.crTable td.crUp, .crTable td.crCashT { color: var(--fsc-green); }
.crTable td.crDown { color: var(--fsc-danger); }
.crTable .crThL, .crTable .crTdL { text-align: left; }
.crTable .crTdL { font-weight: 600; white-space: normal; }
.crTable tr.crClick { cursor: pointer; }
.crTable tr.crClick:hover td { background: var(--fsc-panel-2); }
.crPCell, .crTCell {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; text-align: left; background: transparent; border: 0;
    font-size: var(--fsc-fs-sm); font-weight: 700; color: var(--fsc-text);
}
/* (an entrant's username can be one long word: it wraps rather than widening the table) */
.crTCell { display: inline-flex; width: auto; gap: 8px; overflow-wrap: anywhere; }
.crPMain { display: flex; flex-direction: column; min-width: 0; }
.crPName { font-size: var(--fsc-fs-base); font-weight: 700; line-height: 1.3; color: var(--fsc-text); }
.crPSub { font-size: var(--fsc-fs-xs); font-weight: 400; line-height: 1.4; color: var(--fsc-text-faint); }
.crPTable td { padding-top: 6px; padding-bottom: 6px; }

/* ---- stacks ---- */
.crStack {
    display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 8px 10px; text-align: left;
    background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); color: var(--fsc-text);
}
.crStack:hover { border-color: var(--fsc-blue); }
.crStackMain { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.crStackT { font-size: var(--fsc-fs-base); font-weight: 800; color: var(--fsc-text); }
.crStackP { font-size: var(--fsc-fs-sm); line-height: 1.4; color: var(--fsc-text-soft); overflow-wrap: anywhere; }
.crStackNum { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.crStackPts { font-size: var(--fsc-fs-sm); font-weight: 800; color: var(--fsc-text); white-space: nowrap; }
.crStackShare { font-size: var(--fsc-fs-xs); color: var(--fsc-text-faint); white-space: nowrap; }

/* ---- findings ---- */
.crFdIntro { font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text-soft); }
.crFdHead .crNotes { margin: 10px 0 0; }
.crFdSite { margin: 18px 0 0; }
.crFdSiteH { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 20px; font-weight: 900; line-height: 1.25; color: var(--fsc-text); }
.crFdGHead { margin: 0 0 8px; }
.crFdGHead .crH { margin-bottom: 2px; }
.crFdGHead .crHSub { margin-left: 0; }
.crFdSec { margin: 14px 0 0; }
.crFdSecH { margin: 0 0 6px; font-size: var(--fsc-fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fsc-text-faint); }
.crFdFeat { margin: 0 0 10px; }
.crFdFeatH { margin: 0 0 4px; font-size: var(--fsc-fs-sm); font-weight: 800; color: var(--fsc-text); }
.crFdRow { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) 92px 92px; align-items: center; gap: 8px; padding: 3px 0; }
.crFdBucket { font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); overflow-wrap: anywhere; }
.crFdBars { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.crFdBar { display: block; height: 7px; background: var(--fsc-line); border-radius: 999px; overflow: hidden; }
.crFdBarF, .crFdBarW { display: block; height: 100%; border-radius: 999px; }
.crFdBarF { background: var(--fsc-text-faint); }
.crFdBarW { background: var(--fsc-blue); }
.crFdVals { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--fsc-fs-xs); line-height: 1.3; font-variant-numeric: tabular-nums; }
.crFdValF { color: var(--fsc-text-faint); }
.crFdValW { font-weight: 800; color: var(--fsc-text); }
.crBadge {
    justify-self: start; display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--fsc-line-strong);
    font-size: var(--fsc-fs-xs); font-weight: 800; line-height: 1.5; letter-spacing: .02em; color: var(--fsc-text-soft); white-space: nowrap;
}
.crBadge-solid { color: var(--fsc-text-invert); background: var(--fsc-blue); border-color: var(--fsc-blue); }
.crBadge-emerging { color: var(--fsc-blue); border-color: var(--fsc-blue); background: var(--fsc-blue-soft); }
/* light theme only: the token blue on its own tint is just under AA for 11px text */
:root:not([data-fsc-theme="dark"]) .crBadge-emerging { color: #1D4ED8; }
.crBadge-thin { color: var(--fsc-text-faint); }
.crBadge-inconclusive { color: var(--fsc-over); border-color: var(--fsc-over); }
/* what a label means, on hover, tap or focus (data-tip); Escape closes it. Every text property is set here: the
   badge's own nowrap, spacing and colours (and the page's nowrap) must not reach the bubble. The bubble touches the
   badge through a transparent 6px border, so the pointer can move onto it (and keep it open) without crossing a gap.
   Closed it is display: none, so it takes no room (a hidden bubble past the page's edge would scroll it sideways).
   Where it opens is worked out on hover / focus (tipPlace in the page script): --crTipL / --crTipR / --crTipW keep it
   inside the page, and crTipDown opens it below the badge when there's no room above. */
.crTip { position: relative; cursor: help; scroll-margin-top: 120px; }
.crTip::after {
    content: attr(data-tip); display: none; position: absolute; z-index: 30;
    left: var(--crTipL, 0px); right: var(--crTipR, auto); bottom: 100%;
    width: max-content; max-width: var(--crTipW, min(280px, 78vw)); padding: 8px 10px; border-radius: var(--fsc-radius-sm);
    border-bottom: 6px solid transparent; background: var(--fsc-text); background-clip: padding-box; color: var(--fsc-panel);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
    font-size: var(--fsc-fs-xs); font-weight: 600; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left;
    white-space: normal !important; overflow-wrap: break-word;
}
.crTip:hover::after, .crTip:focus::after { display: block; }
.crTip.crTipDown::after { bottom: auto; top: 100%; border-bottom: 0; border-top: 6px solid transparent; }
/* the labels key in the findings header */
.crFdKeyRow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 12px; }
.crFdKeyLbl { margin-right: 4px; color: var(--fsc-text-soft); }
.crFdChips { margin: 0 0 12px; }
.crFdLegend { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 12px 0 -4px; font-size: var(--fsc-fs-xs); font-weight: 600; color: var(--fsc-text-soft); }
.crFdKey { display: inline-block; width: 14px; height: 7px; border-radius: 999px; margin-left: 6px; }
.crFdKey:first-child { margin-left: 0; }
.crFdKeyF { background: var(--fsc-text-faint); }
.crFdKeyW { background: var(--fsc-blue); }
.crFdLines { margin: 12px 0 0; }
.crFdLines li { margin: 0 0 6px; font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text); }
.crFdLines .crBadge { margin-right: 6px; }
.crFdFew { margin: 4px 0 0; font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); }

/* ---- the drill panel: one panel at the right (full screen on a phone), Back inside it ---- */
.crScrim { position: fixed; inset: 0; z-index: 1040; background: rgba(8, 12, 20, .45); }
.crDrill {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1050; display: flex; flex-direction: column;
    width: min(500px, 100vw); background: var(--fsc-panel); border-left: 1px solid var(--fsc-line-strong);
    box-shadow: -12px 0 32px rgba(0, 0, 0, .22);
    font-family: var(--fsc-font-body); font-size: var(--fsc-fs-base); line-height: 1.45; color: var(--fsc-text); text-align: left; white-space: normal;
}
.crDrillHead { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px; border-bottom: 1px solid var(--fsc-line); }
.crDrillBack, .crDrillX { flex: 0 0 auto; min-width: 40px; min-height: 40px; padding: 4px 10px; background: transparent; border: 0; border-radius: var(--fsc-radius-sm); font-weight: 700; color: var(--fsc-blue); }
.crDrillBack { font-size: var(--fsc-fs-sm); }
.crDrillX { margin-left: auto; font-size: 24px; line-height: 1; color: var(--fsc-text-soft); }
.crDrillBack:hover, .crDrillX:hover { background: var(--fsc-panel-2); }
.crDrillTitle { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--fsc-fs-md); font-weight: 800; line-height: 1.3; color: var(--fsc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crDrillTitle:focus { outline: none; }
.crDrillBody { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 24px; }
.crDHead { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.crDHeadT { min-width: 0; }
.crDSub { font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); }
.crDWin, .crDWinLine { margin-top: 2px; font-size: var(--fsc-fs-sm); font-weight: 700; color: var(--fsc-gold); }
.crDWinLine { margin: 0 0 12px; line-height: 1.5; }
.crTiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.crTile { display: flex; flex-direction: column; padding: 10px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); }
.crTileV { font-size: 20px; font-weight: 900; line-height: 1.2; color: var(--fsc-text); font-variant-numeric: tabular-nums; }
.crTileL { font-size: var(--fsc-fs-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--fsc-text-faint); }
.crTileS { font-size: var(--fsc-fs-xs); color: var(--fsc-text-faint); }
.crDSec { margin: 0 0 16px; }
.crSlots + .crDSec { margin-top: 16px; }
.crDSecH { margin: 0 0 6px; font-size: var(--fsc-fs-sm); font-weight: 800; color: var(--fsc-text); }
.crDSecH .crHSub { margin-left: 4px; }
.crShareRow {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 140px) 44px; align-items: center; gap: 10px; width: 100%;
    min-height: 34px; padding: 4px 2px; text-align: left; background: transparent; border: 0; color: var(--fsc-text);
}
.crShareRow:hover { background: var(--fsc-panel-2); }
.crShareName { font-size: var(--fsc-fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crShareBar { display: block; height: 7px; background: var(--fsc-line); border-radius: 999px; overflow: hidden; }
.crShareBar > span { display: block; height: 100%; background: var(--fsc-blue); border-radius: 999px; }
.crShareV { font-size: var(--fsc-fs-sm); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.crDActs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.crActBtn {
    min-height: 40px; padding: 8px 14px; background: var(--fsc-panel); border: 1px solid var(--fsc-blue); border-radius: var(--fsc-radius-sm);
    font-size: var(--fsc-fs-sm); font-weight: 800; color: var(--fsc-blue); white-space: normal; text-align: left;
}
.crActBtn:hover { background: var(--fsc-blue-soft); }

/* ---- phones (the page's own width) ---- */
@container crpage (max-width: 700px) {
    .crPage { padding: 0 0 24px; }
    .crCard { padding: 12px; }
    .crCRow { flex-wrap: wrap; }
    .crCRowMain { flex-basis: calc(100% - 50px); }
    .crCRowStats { width: 100%; justify-content: space-between; gap: 6px; padding-left: 42px; }
    .crStat { align-items: flex-start; min-width: 0; }
    .crStatWide { min-width: 0; }
    /* the number columns stack under the name here, so they size to their values and the sort headers wrap
       as one "Sort" row instead of sitting over columns */
    .crCRowStats .crStat, .crCRowStats .crStatWide { width: auto; min-width: 0; }
    .crSortHead { flex-wrap: wrap; align-items: center; gap: 4px; padding: 2px 0 8px; }
    .crSortLbl { display: inline; margin-right: 4px; }
    .crSortLead { flex: 0 0 auto; padding-left: 0; }
    .crSortStats { flex: 1 1 auto; flex-wrap: wrap; gap: 2px; }
    .crSortNum, .crSortNum.crSortWide { width: auto; min-width: 0; padding: 2px 6px; }
    .crTabsMain { display: flex; }
    /* "Contest Review Trends and Findings" wraps onto two lines rather than running off a phone */
    .crTabsMain .crTab { flex: 1 1 0; }
    .crPage .crTabsMain .crTab { white-space: normal !important; }
    .crTabsC .crTab { flex: 1 0 auto; padding: 6px 12px; }
    .crBar .crPush { margin-left: 0; }
    .crTiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crFdRow { grid-template-columns: minmax(0, 1fr) 72px; }
    .crFdBars { grid-column: 1 / -1; order: 3; }
    .crFdBucket { order: 1; }
    .crFdVals { order: 2; flex-direction: row; gap: 8px; }
    .crFdRow .crBadge { order: 4; }
    .crScoreVal { font-size: 18px; }
    .crCTitle { font-size: 20px; }
}
@container crpage (max-width: 420px) {
    /* the entry fee column, and its sort header with it (vm.sortCols is in the same order as the row's columns) */
    .crCRowStats .crStat:nth-child(2), .crSortStats .crSortBtn:nth-child(2) { display: none; }
    .crSeg { display: flex; width: 100%; }
    .crSegBtn { flex: 1 1 0; padding: 4px 6px; }
}
@media (max-width: 560px) {
    .crDrill { width: 100vw; border-left: 0; }
}

/* ---- the leaderboard: filters, the board (or a search's results), a player's page, its footer ---- */
.crLbBar { margin-bottom: 10px; }
.crLbFind { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crLbFindInput {
    width: 200px; max-width: 100%; height: 36px; padding: 4px 10px; background: var(--fsc-panel); color: var(--fsc-text);
    border: 1px solid var(--fsc-line-strong); border-radius: var(--fsc-radius-sm); font-size: var(--fsc-fs-sm);
}
.crLbFindBtn {
    min-height: 36px; padding: 4px 16px; background: var(--fsc-blue); color: var(--fsc-text-invert); border: 0; border-radius: var(--fsc-radius-sm);
    font-size: var(--fsc-fs-sm); font-weight: 800; white-space: nowrap;
}
.crLbFindBtn:hover { filter: brightness(1.08); }
.crLbFindBtn:disabled { opacity: .5; filter: none; cursor: default; }
.crLbRanges { margin: 0 0 10px; }
.crLbFacts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text-soft); }
.crLbUpdated { color: var(--fsc-text-faint); }
.crLbTop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; font-size: var(--fsc-fs-sm); }
.crLbCap { font-weight: 800; color: var(--fsc-text); }
.crLbMin { color: var(--fsc-text-soft); }
/* Columns: the optional columns, a small menu (a native <details>, so it works with the keyboard) */
.crLbCols { position: relative; }
.crLbCols summary { cursor: pointer; font-weight: 700; color: var(--fsc-blue); list-style: none; }
.crLbCols summary::-webkit-details-marker { display: none; }
.crLbCols summary::after { content: ' \25BE'; font-size: 10px; }
.crLbColsList {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; gap: 6px; min-width: 190px;
    padding: 10px 12px; background: var(--fsc-panel); border: 1px solid var(--fsc-line-strong); border-radius: var(--fsc-radius-sm); box-shadow: var(--fsc-shadow);
}
.crPage .crLbColsList label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--fsc-text); white-space: nowrap; cursor: pointer; }
.crLbColsOff { opacity: .45; }
.crLbSearch {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; padding: 8px 12px;
    background: var(--fsc-blue-soft); border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); font-size: var(--fsc-fs-sm); line-height: 1.5; color: var(--fsc-text);
}
.crLbSearchMsg { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
/* the table: Rank and Player stay in view while the numbers scroll sideways */
.crLbTable th { white-space: nowrap; }
.crLbSortBtn { padding: 0; background: transparent; border: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.crLbSortBtn:hover { color: var(--fsc-blue); }
.crLbSortedH, .crLbSortedH .crLbSortBtn { color: var(--fsc-blue); }
.crLbTable td.crLbSorted { font-weight: 800; }
/* consistency above 2: strong */
.crLbTable td.crLbStrong { font-weight: 800; color: var(--fsc-green); }
.crLbTable .crLbRankH, .crLbTable .crLbRank, .crLbTable .crLbPlayerH, .crLbTable .crLbPlayer { position: sticky; z-index: 1; background: var(--fsc-panel); }
.crLbTable .crLbRankH, .crLbTable .crLbRank { left: 0; width: 48px; min-width: 48px; max-width: 48px; }
.crLbTable .crLbPlayerH, .crLbTable .crLbPlayer { left: 48px; box-shadow: 1px 0 0 var(--fsc-line); }
.crLbTable .crLbRank { font-weight: 800; color: var(--fsc-text-soft); }
/* a name wraps only when it is longer than the column (the shared cell style breaks anywhere, which would let the
   table squeeze the column down to a few letters) */
.crLbTable .crLbPlayer { min-width: 150px; }
.crLbPlayer .crTCell { max-width: 220px; text-align: left; overflow-wrap: break-word; }
.crLbUnnamed { font-style: italic; color: var(--fsc-text-faint); }
.crLbTable tr.crLbHit td { background: var(--fsc-gold-soft); }
/* a player's page */
.crLbPHead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 8px 0 2px; }
.crLbPName { min-width: 0; margin: 0; font-size: 24px; font-weight: 900; line-height: 1.2; color: var(--fsc-text); overflow-wrap: anywhere; }
.crLbPHead .crHSub { margin-left: 0; }
.crLbPRank { margin: 0 0 12px; font-size: var(--fsc-fs-sm); font-weight: 700; color: var(--fsc-text-soft); }
.crLbTiles { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.crTileV.crLbNegT { color: var(--fsc-danger); }
.crLbChart { margin: 0 0 16px; }
.crLbChartHead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 8px; }
.crLbChartHead .crH { margin: 0; }
.crLbChartHead .crHSub { margin-left: 0; }
.crLbChartBox { position: relative; }
.crLbSvg { display: block; width: 100%; height: 180px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: var(--fsc-radius-sm); }
.crLbZero { stroke: var(--fsc-line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.crLbBarUp { fill: var(--fsc-green); opacity: .45; }
.crLbBarDown { fill: var(--fsc-danger); opacity: .45; }
.crLbLine { fill: none; stroke: var(--fsc-green); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.crLbLine.crLbLineDown { stroke: var(--fsc-danger); }
.crLbAxis { position: absolute; left: 8px; z-index: 1; font-size: var(--fsc-fs-xs); font-weight: 700; color: var(--fsc-text-faint); font-variant-numeric: tabular-nums; pointer-events: none; }
.crLbAxisHi { top: 4px; }
.crLbAxisLo { bottom: 4px; }
.crLbTabs { display: inline-flex; margin-bottom: 10px; }
.crLbCH { margin-top: 16px; }
.crLbCName { min-width: 220px; }
.crLbCMeta { display: block; font-size: var(--fsc-fs-xs); font-weight: 500; color: var(--fsc-text-faint); }
.crLbFlag { font-weight: 800; color: var(--fsc-gold); }
.crPage a.crLbReview { font-weight: 700; white-space: nowrap; }
/* an entrant's leaderboard page, beside their name in a contest (only when the contest API gives their uid) */
.crPage a.crLbLink { margin-left: 8px; font-size: var(--fsc-fs-xs); font-weight: 700; white-space: nowrap; }
/* what's counted, the notes, where winnings come from */
.crLbFoot { margin: 0 0 14px; padding: 0 4px; font-size: var(--fsc-fs-sm); color: var(--fsc-text-soft); }
.crLbCoverage { margin: 0 0 8px; }
.crLbCoverage summary { cursor: pointer; font-weight: 700; color: var(--fsc-blue); }
.crPage .crLbCoverage ul, .crPage .crLbNotes { margin: 6px 0 0; padding-left: 18px; }
.crPage .crLbCoverage li, .crPage .crLbNotes li { margin: 0 0 4px; list-style: disc; line-height: 1.5; color: var(--fsc-text-soft); }
@container crpage (max-width: 560px) {
    .crLbFind { flex: 1 1 100%; margin-left: 0; }
    .crLbFindInput { flex: 1 1 auto; width: auto; }
    .crLbTable .crLbPlayer { min-width: 120px; }
    .crLbPlayer .crTCell { max-width: 150px; }
    .crLbPName { font-size: 20px; }
    .crLbTable .crLbRankH, .crLbTable .crLbRank { width: 40px; min-width: 40px; max-width: 40px; }
    .crLbTable .crLbPlayerH, .crLbTable .crLbPlayer { left: 40px; }
}
