/* ============================================================
   GTA 6 "CAN I RUN LEONIDA" CHECKER (/tools/gta-6/can-i-run-leonida/).
   Scoped body.pubv2 .lcx (the checker) and body.pubv2 .lcg-* (the guide).
   Sections: tokens, profile switch, card, verdict, rows, pickers, meters,
   foot, guide tables, phone.
   Every control is drawn here: the profile switch, the five pickers with
   their lists and search box, the scrollbar. No native control shows.
   The look is GTA 6's own: the game's key art under the verdict, its
   sunset pink and orange as the accent.
   ============================================================ */

/* ---------- tokens + frame ---------- */
body.pubv2 .lcx { --lc-radius: 6px; --lc-pink: #ff5c8a; --lc-sun: #ffb347; color: var(--pv2-text-soft); font-size: 14px; position: relative; }
body.pubv2 .lcx button { font: inherit; }
/* the site kills every outline (*:focus { outline: none !important }): the ring is a shadow */
body.pubv2 .lcx :is(button, a, input):focus-visible { box-shadow: 0 0 0 2px var(--pv2-gold); }
html:not(.ssjs) body.pubv2 .lcx { display: none; }
body.pubv2 .lcx [hidden] { display: none !important; }
body.pubv2 .lcx .lcx-nw { white-space: nowrap; }
body.pubv2 .lcx-noscript { margin: 0; padding: 18px; color: var(--pv2-text-soft); border: 1px solid var(--pv2-border); border-radius: 6px; background: var(--pv2-panel); }
/* layout.css pads every <section> 60px top and bottom; the card is a section for its label only */
body.pubv2 .lcx section.lcx-card { padding: 0; margin: 0; }

/* ---------- the profile switch: two drawn pick-one buttons ---------- */
body.pubv2 .lcx .lcx-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 14px; }
body.pubv2 .lcx .lcx-vs { display: inline-flex; padding: 3px; gap: 3px; background: var(--pv2-surface); border: 1px solid var(--pv2-border); border-radius: var(--lc-radius); }
body.pubv2 .lcx .lcx-vs button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 16px; border: 0; border-radius: 4px; background: transparent; color: var(--pv2-text-soft); font-weight: 600; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
body.pubv2 .lcx .lcx-vs button i { color: var(--pv2-text-muted); font-size: 14px; }
body.pubv2 .lcx .lcx-vs button:hover { color: #fff; background: var(--pv2-hover); }
body.pubv2 .lcx .lcx-vs button[aria-checked="true"] { background: linear-gradient(90deg, rgba(255, 92, 138, .22), rgba(255, 179, 71, .18)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .45); }
body.pubv2 .lcx .lcx-vs button[aria-checked="true"] i { color: var(--lc-sun); }
/* the picked profile is the group's tab stop, so its own inset edge must not hide the focus ring */
body.pubv2 .lcx .lcx-vs button[aria-checked="true"]:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .45), 0 0 0 2px var(--pv2-gold); }
body.pubv2 .lcx .lcx-shared { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13.5px; color: var(--pv2-text-soft); }
body.pubv2 .lcx .lcx-link { padding: 0; border: 0; background: none; color: var(--pv2-gold); font-weight: 600; cursor: pointer; min-height: 32px; }
body.pubv2 .lcx .lcx-link:hover { text-decoration: underline; }

/* ---------- the card ---------- */
body.pubv2 .lcx .lcx-card { display: block; background: var(--pv2-panel); border: 1px solid var(--pv2-border); border-radius: var(--lc-radius); overflow: visible; }
/* the verdict sits on the game's own key art (its street, not its logo), darkened so the words read; game art is always allowed */
body.pubv2 .lcx .lcx-head { position: relative; padding: 20px 22px 18px; border-radius: var(--lc-radius) var(--lc-radius) 0 0; overflow: hidden; background: #1b1720; border-bottom: 1px solid var(--pv2-border); }
/* never drawn wider than its 1024 px file: it sits on the right, under the side the gradient leaves open */
body.pubv2 .lcx .lcx-art { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: min(100%, 1024px); height: 100%; object-fit: cover; object-position: right 88%; z-index: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
body.pubv2 .lcx .lcx-head:before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 16, 24, .97) 0%, rgba(20, 16, 24, .92) 55%, rgba(20, 16, 24, .72) 100%); }
body.pubv2 .lcx .lcx-head > :not(.lcx-art) { position: relative; z-index: 2; }
body.pubv2 .lcx .lcx-head:after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--lc-pink), var(--lc-sun)); }
body.pubv2 .lcx .lcx-verdict { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
body.pubv2 .lcx .lcx-verdict b { font-size: 28px; line-height: 1.2; font-weight: 800; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
body.pubv2 .lcx .lcx-verdict span { font-size: 15px; color: #fff; text-wrap: pretty; }
body.pubv2 .lcx .lcx-verdict[data-v="above"] b { color: var(--pv2-ok); }
/* Close match is a pass, as in Leonida's own checker: green like Above, never the amber of a warning */
body.pubv2 .lcx .lcx-verdict[data-v="at"] b { color: var(--pv2-ok); }
body.pubv2 .lcx .lcx-verdict[data-v="below"] b { color: var(--pv2-danger); }
body.pubv2 .lcx .lcx-verdict[data-v="unknown"] b { color: var(--pv2-text-soft); }
body.pubv2 .lcx .lcx-note { margin: 8px 0 0; max-width: 72ch; font-size: 13px; color: #c9c3cf; text-wrap: pretty; }
body.pubv2 .lcx .lcx-note a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 179, 71, .6); text-underline-offset: 2px; }

/* ---------- the rows: label, picker, meter, state; the profile's own parts under them ----------
   the picker is 400 px wide on a desktop so its grey line ("Your browser shows AMD Radeon RX 6700M: pick the closest") stays
   one line at 1440; a longer name wraps, never cut */
body.pubv2 .lcx .lcx-rows { padding: 4px 22px; }
body.pubv2 .lcx .lcx-row { display: grid; grid-template-columns: 150px minmax(0, 400px) minmax(0, 1fr) 104px; grid-template-areas: "rl pick meter st" ". ref ref ref" ". extra extra extra"; align-items: center; gap: 4px 18px; padding: 14px 0; border-top: 1px solid var(--pv2-line); }
body.pubv2 .lcx .lcx-row:first-child { border-top: 0; }
body.pubv2 .lcx .lcx-row-plain { grid-template-areas: "rl pick ref st" ". extra extra extra"; }
body.pubv2 .lcx .lcx-rl { grid-area: rl; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; white-space: nowrap; }
body.pubv2 .lcx .lcx-rl i { width: 18px; text-align: center; color: var(--lc-sun); font-size: 15px; }
body.pubv2 .lcx .lcx-pick { grid-area: pick; position: relative; min-width: 0; }
body.pubv2 .lcx .lcx-meter { grid-area: meter; }
body.pubv2 .lcx .lcx-st { grid-area: st; justify-self: end; white-space: nowrap; }
body.pubv2 .lcx .lcx-ref { grid-area: ref; margin: 0; font-size: 12.5px; color: var(--pv2-text-muted); }
body.pubv2 .lcx .lcx-row-plain .lcx-ref { font-size: 13px; color: var(--pv2-text-soft); }
body.pubv2 .lcx .lcx-extra { grid-area: extra; margin: 0; font-size: 12.5px; color: var(--pv2-text-soft); }
body.pubv2 .lcx .lcx-extra b { color: #fff; font-weight: 600; }
/* the state: the public pill, green for a pass (Above and Close match), red for Below, amber for a system or disk that
   only half works, and a quiet one for a missing part */
body.pubv2 .lcx .lcx-st[data-st="unknown"] { color: var(--pv2-text-muted); background: var(--pv2-field); border-color: var(--pv2-border); }

/* ---------- pickers: a button, a drawn list, a search box for the long ones ---------- */
body.pubv2 .lcx .lcx-pick-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 6px 12px; text-align: left; background: var(--pv2-field); border: 1px solid var(--pv2-border-strong); border-radius: var(--lc-radius); color: #fff; cursor: pointer; }
body.pubv2 .lcx .lcx-pick-btn:hover, body.pubv2 .lcx .lcx-pick-btn[aria-expanded="true"] { border-color: var(--lc-sun); }
body.pubv2 .lcx .lcx-pick-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
body.pubv2 .lcx .lcx-pick-txt b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
/* the grey line under the pick wraps, never cut: a long name from the browser ("Your browser shows Adreno (TM) 740: ...") */
body.pubv2 .lcx .lcx-pick-txt small { color: var(--pv2-text-muted); font-size: 12px; overflow-wrap: anywhere; text-wrap: pretty; }
body.pubv2 .lcx .lcx-pick.is-empty .lcx-pick-txt b { color: var(--lc-sun); }
body.pubv2 .lcx .lcx-caret { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--pv2-text-muted); border-bottom: 2px solid var(--pv2-text-muted); transform: rotate(45deg); margin: -4px 4px 0 0; }
body.pubv2 .lcx .lcx-pop { position: absolute; left: 0; top: 100%; z-index: 40; width: max(100%, 320px); margin-top: 6px; background: var(--pv2-surface); border: 1px solid var(--pv2-border-strong); border-radius: var(--lc-radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); overflow: hidden; }
body.pubv2 .lcx .lcx-pop-head { padding: 10px; border-bottom: 1px solid var(--pv2-line); }
body.pubv2 .lcx .lcx-pop input { display: block; width: 100%; height: 38px; padding: 0 12px; background: var(--pv2-field); border: 1px solid var(--pv2-border-strong); border-radius: 4px; color: #fff; font-size: 14px; box-shadow: none; }
body.pubv2 .lcx .lcx-pop input:focus { border-color: var(--lc-sun); outline: none; }
body.pubv2 .lcx .lcx-pop input::placeholder { color: var(--pv2-text-dim); }
body.pubv2 .lcx .lcx-pop-list { max-height: 340px; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: var(--pv2-border-strong) var(--pv2-surface); }
body.pubv2 .lcx .lcx-pop-list::-webkit-scrollbar { width: 10px; }
body.pubv2 .lcx .lcx-pop-list::-webkit-scrollbar-track { background: var(--pv2-surface); }
body.pubv2 .lcx .lcx-pop-list::-webkit-scrollbar-thumb { background: var(--pv2-border-strong); border-radius: 5px; border: 2px solid var(--pv2-surface); }
body.pubv2 .lcx .lcx-pop-group { padding: 10px 8px 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pv2-text-muted); }
body.pubv2 .lcx .lcx-pop-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--pv2-text-soft); cursor: pointer; text-align: left; }
body.pubv2 .lcx .lcx-pop-list button b { flex: 1 1 auto; min-width: 0; color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
body.pubv2 .lcx .lcx-pop-list button small { flex: none; color: var(--pv2-text-muted); font-size: 12px; white-space: nowrap; }
body.pubv2 .lcx .lcx-pop-list button:hover, body.pubv2 .lcx .lcx-pop-list button.is-active { background: var(--pv2-hover); color: #fff; }
body.pubv2 .lcx .lcx-pop-list button[aria-selected="true"] { background: rgba(255, 179, 71, .14); box-shadow: inset 2px 0 0 var(--lc-sun); }
/* the picked option's edge must not hide the focus ring when the keyboard lands on it */
body.pubv2 .lcx .lcx-pop-list button[aria-selected="true"]:focus-visible { box-shadow: inset 2px 0 0 var(--lc-sun), 0 0 0 2px var(--pv2-gold); }
body.pubv2 .lcx .lcx-pop-none { padding: 14px; color: var(--pv2-text-muted); text-align: center; font-size: 13px; }

/* ---------- meters: the profile's range as a band, your part as a mark ---------- */
body.pubv2 .lcx .lcx-meter { position: relative; height: 26px; }
body.pubv2 .lcx .lcx-meter:before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px; background: var(--pv2-field); }
body.pubv2 .lcx .lcx-band { position: absolute; top: 7px; height: 12px; border-radius: 3px; background: rgba(255, 179, 71, .22); box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .5); }
body.pubv2 .lcx .lcx-mark { position: absolute; top: 0; width: 0; height: 26px; }
body.pubv2 .lcx .lcx-mark:before { content: ""; position: absolute; left: -2px; top: 2px; width: 4px; height: 22px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px var(--pv2-panel); }
body.pubv2 .lcx .lcx-mark[data-st="above"]:before { background: var(--pv2-ok); }
body.pubv2 .lcx .lcx-mark[data-st="at"]:before { background: var(--pv2-ok); }
body.pubv2 .lcx .lcx-mark[data-st="below"]:before { background: var(--pv2-danger); }

/* ---------- foot: the source, the privacy line, Copy link ---------- */
body.pubv2 .lcx .lcx-foot { display: flex; align-items: center; gap: 12px 20px; padding: 14px 22px; border-top: 1px solid var(--pv2-border); background: var(--pv2-surface); border-radius: 0 0 var(--lc-radius) var(--lc-radius); }
body.pubv2 .lcx .lcx-foot-txt { flex: 1 1 auto; min-width: 0; }
body.pubv2 .lcx .lcx-foot p { margin: 0; font-size: 12.5px; color: var(--pv2-text-muted); text-wrap: pretty; }
body.pubv2 .lcx .lcx-foot p + p { margin-top: 4px; }
body.pubv2 .lcx .lcx-foot p i { margin-right: 6px; color: var(--pv2-ok); }
body.pubv2 .lcx .lcx-foot a { color: var(--pv2-text-soft); }
body.pubv2 .lcx .lcx-copy { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
body.pubv2 .lcx .lcx-copied { color: var(--pv2-ok); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
body.pubv2 .lcx .lcx-linkbox { flex: 1 1 100%; display: block; width: 100%; height: 38px; padding: 0 10px; background: var(--pv2-field); border: 1px solid var(--pv2-border-strong); border-radius: 4px; color: #fff; font-size: 13px; }

/* ---------- guide tables ---------- */
body.pubv2 .lcg-top { margin-bottom: 10px; }
body.pubv2 .sstool-guide .lcg-h2 { margin-top: 30px; }
body.pubv2 .lcg-table, body.pubv2 .lcg-bars { margin: 14px 0 6px; border: 1px solid var(--pv2-border); border-radius: 6px; background: var(--pv2-panel); overflow: hidden; }
body.pubv2 .lcg-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; padding: 11px 16px; border-top: 1px solid var(--pv2-line); align-items: start; }
body.pubv2 .lcg-row:first-child { border-top: 0; }
body.pubv2 .lcg-row > span { color: var(--pv2-text-soft); font-size: 13.5px; text-wrap: pretty; }
body.pubv2 .lcg-row > span small { display: block; margin-top: 2px; color: var(--pv2-text-muted); font-size: 12px; }
body.pubv2 .lcg-row > span[role="rowheader"] { color: #fff; font-weight: 600; white-space: nowrap; }
body.pubv2 .lcg-row i { width: 18px; margin-right: 8px; text-align: center; color: #ffb347; }
body.pubv2 .lcg-head { background: var(--pv2-surface); }
body.pubv2 .lcg-head > span { color: #fff !important; font-weight: 600; white-space: nowrap; }
body.pubv2 .lcg-row > .lcg-both { grid-column: 2 / span 2; }
body.pubv2 .lcg-bar { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 118px 118px; gap: 0 14px; align-items: center; padding: 7px 16px; border-top: 1px solid var(--pv2-line); }
body.pubv2 .lcg-bar:first-child { border-top: 0; }
body.pubv2 .lcg-bar-head { background: var(--pv2-surface); padding-top: 9px; padding-bottom: 9px; }
body.pubv2 .lcg-bar-head > span { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; }
body.pubv2 .lcg-name { color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
body.pubv2 .lcg-name:before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 2px; vertical-align: 1px; background: var(--pv2-text-dim); }
body.pubv2 .lcg-v-nvidia:before { background: #76b900; }
body.pubv2 .lcg-v-amd:before { background: #ed1c24; }
body.pubv2 .lcg-v-intel:before { background: #0071c5; }
body.pubv2 .lcg-score { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.pubv2 .lcg-score i { flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--pv2-field); overflow: hidden; }
body.pubv2 .lcg-score u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff5c8a, #ffb347); }
body.pubv2 .lcg-score b { flex: none; width: 30px; text-align: right; color: #fff; font-size: 13px; }
body.pubv2 .lcg-name small { margin-left: 6px; color: var(--pv2-text-muted); font-size: 11.5px; font-weight: 400; }
body.pubv2 .lcg-bar .pv2p-pill { white-space: nowrap; }
body.pubv2 .lcg-os { margin-top: 30px; }
body.pubv2 .lcg-counts p { margin: 0 0 4px; }
body.pubv2 .lcg-counts b { color: #fff; font-size: 18px; margin-right: 4px; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
	body.pubv2 .lcx .lcx-row { grid-template-columns: 140px minmax(0, 260px) minmax(0, 1fr) 100px; gap: 4px 14px; }
}
@media (max-width: 991px) {
	body.pubv2 .lcx .lcx-row, body.pubv2 .lcx .lcx-row-plain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "rl rl st" "pick meter meter" "ref ref ref" "extra extra extra"; }
	body.pubv2 .lcx .lcx-row-plain { grid-template-areas: "rl rl st" "pick pick pick" "ref ref ref" "extra extra extra"; }
	body.pubv2 .lcg-bar { grid-template-columns: minmax(0, 180px) minmax(0, 1fr) 110px 110px; }
}
/* ---------- phone ---------- */
@media (max-width: 699px) {
	body.pubv2 .lcx .lcx-top { margin-bottom: 12px; }
	body.pubv2 .lcx .lcx-vs { display: flex; width: 100%; }
	body.pubv2 .lcx .lcx-vs button { flex: 1 1 0; justify-content: center; padding: 6px 8px; min-height: 42px; }
	body.pubv2 .lcx .lcx-head { padding: 16px 16px 14px; }
	body.pubv2 .lcx .lcx-art { object-position: 60% 92%; }
	body.pubv2 .lcx .lcx-head:before { background: rgba(20, 16, 24, .94); }
	/* the phone keeps the state pill and the score line; the meter would only repeat them */
	body.pubv2 .lcx .lcx-meter { display: none; }
	body.pubv2 .lcx .lcx-verdict b { font-size: 24px; }
	body.pubv2 .lcx .lcx-rows { padding: 2px 16px; }
	body.pubv2 .lcx .lcx-row, body.pubv2 .lcx .lcx-row-plain { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "rl st" "pick pick" "ref ref" "extra extra"; gap: 8px 10px; padding: 12px 0; }
	body.pubv2 .lcx .lcx-row-plain { grid-template-areas: "rl st" "pick pick" "ref ref" "extra extra"; }
	body.pubv2 .lcx .lcx-pick-btn { min-height: 48px; }
	body.pubv2 .lcx .lcx-pop { position: fixed; left: 10px; right: 10px; top: 60px; width: auto; margin: 0; z-index: 1000; }
	body.pubv2 .lcx .lcx-pop input { font-size: 16px; height: 44px; }
	body.pubv2 .lcx .lcx-pop-list { max-height: 50vh; }
	body.pubv2 .lcx .lcx-pop-list button { min-height: 44px; }
	body.pubv2 .lcx .lcx-foot { flex-wrap: wrap; padding: 14px 16px; }
	body.pubv2 .lcx .lcx-copy { width: 100%; justify-content: center; }
	body.pubv2 .lcx .lcx-link { min-height: 40px; }
	body.pubv2 .lcg-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; }
	body.pubv2 .lcg-row > span[role="rowheader"] { grid-column: 1 / -1; }
	body.pubv2 .lcg-head > span:first-child { display: none; }
	body.pubv2 .lcg-row > .lcg-both { grid-column: 1 / -1; }
	/* the name on its own line; the score and both profiles' tags under it, in two fixed columns that line up with the head ("Close match" twice beside a long name cut it, 11/23) */
	body.pubv2 .lcg-bar { grid-template-columns: minmax(0, 1fr) 114px 114px; grid-template-areas: "name name name" "score a b"; gap: 6px 8px; padding: 9px 12px; }
	body.pubv2 .lcg-bar > :nth-child(3), body.pubv2 .lcg-bar > :nth-child(4) { text-align: center; }
	body.pubv2 .lcg-bar-head > span:nth-child(3), body.pubv2 .lcg-bar-head > span:nth-child(4) { font-size: 11px; }
	body.pubv2 .lcg-bar > :nth-child(1) { grid-area: name; }
	body.pubv2 .lcg-bar > :nth-child(2) { grid-area: score; }
	body.pubv2 .lcg-bar > :nth-child(3) { grid-area: a; }
	body.pubv2 .lcg-bar > :nth-child(4) { grid-area: b; }
	body.pubv2 .lcg-bar-head > span:nth-child(2) { display: none; }
	body.pubv2 .lcg-bar .pv2p-pill { font-size: 11px; padding-left: 7px; padding-right: 7px; }
}
/* the intro under the heading: no lone word on its last line (the two-sentence intro of 11/23 left "checker." alone; gate words.orphan) */
body.pubv2.sstool-page .sstool-band > .container > p { text-wrap: balance; }
