/* public/gta-settings.css — GTA display settings and appearance overrides. */
/* ⚠ THE PALETTE, DEFINED ONCE (owner, 18.11.2026: "the rest of the site in the colours of the race and the Wasted Index").
   Deep plum ground, lighter plum panels, magenta pink edges and accents, cyan for percents and secondary accents, cream white
   figures, the orange-to-pink bar. Every older name (--ls-*, --page-bg, --surface*, --border, --text*, --gta-*) is an alias
   of these, and no component may restate a navy or teal literal (gta-palette.test.mjs). -rgb twins carry alpha: rgba(var(--lp-bg-rgb),.9).
   Green up, red down, amber and the star colours are semantic and keep their own values. Islands that sit on artwork or dim
   the page (the hero, a tile's art, a token mark, the card's backdrop) keep the dark set in the light theme too, as before. */
:root, ::backdrop, html[data-gta-theme="light"] :is(.ls-hero, .ls-tile-art, .tok-icon) {
  --lp-bg:#100e18; --lp-bg-rgb:16,14,24; --lp-surface:#17101e; --lp-surface-rgb:23,16,30; --lp-surface-2:#1e1628; --lp-surface-2-rgb:30,22,40;
  --lp-hover:#281d35; --lp-hover-rgb:40,29,53; --lp-border:#362742; --lp-border-rgb:54,39,66; --lp-border-strong:#4d3a5e; --lp-border-strong-rgb:77,58,94;
  --lp-text:#fff8e9; --lp-text-rgb:255,248,233; --lp-text-2:#d6cfe0; --lp-text-2-rgb:214,207,224; --lp-muted:#a9a5b6; --lp-muted-rgb:169,165,182;
  --lp-pink:#ff3299; --lp-pink-rgb:255,50,153; --lp-cyan:#51e8ef; --lp-cyan-rgb:81,232,239;
  --lp-pick-bg:#17404f; --lp-up:#24f36c; --lp-down:#ff4d68; --lp-amber:#ffb51f;
  --lp-bar:linear-gradient(90deg,#ffbd69,#ff7187 50%,#ff3299);
  --lp-frame:linear-gradient(110deg,#ff547eaa,#eb259470,#905bd070);
  --lp-panel:linear-gradient(115deg,#17101e,#100e18 65%,#171020);
  --ls-bg:var(--lp-bg); --ls-surface:var(--lp-surface); --ls-surface2:var(--lp-surface-2); --ls-border:var(--lp-border); --ls-text:var(--lp-text);
  --ls-muted:var(--lp-muted); --ls-brand:var(--lp-pink); --ls-cyan:var(--lp-cyan); --ls-hover:var(--lp-hover);
  --ls-green:var(--lp-up); --ls-red:var(--lp-down); --ls-amber:var(--lp-amber);
  --page-bg:var(--lp-bg); --surface:var(--lp-surface); --surface-raised:var(--lp-surface-2); --surface-hover:var(--lp-hover); --border:var(--lp-border);
  --text:var(--lp-text); --text-secondary:var(--lp-text-2); --text-muted:var(--lp-muted);
  --ls-pick-bg:var(--lp-pick-bg); --ls-pick-edge:rgba(var(--lp-cyan-rgb),.75);
  --gta-panel:var(--lp-surface); --gta-ink:var(--lp-text); --gta-muted:var(--lp-muted); --gta-line:var(--lp-border); --gta-field:var(--lp-bg); --gta-accent:var(--lp-pink) }
html[data-gta-theme="light"] {
  --lp-bg:#f7f2fb; --lp-bg-rgb:247,242,251; --lp-surface:#ffffff; --lp-surface-rgb:255,255,255; --lp-surface-2:#fbf7ff; --lp-surface-2-rgb:251,247,255;
  --lp-hover:#f2eaf8; --lp-hover-rgb:242,234,248; --lp-border:#e2d5ec; --lp-border-rgb:226,213,236; --lp-border-strong:#c4b0d6; --lp-border-strong-rgb:196,176,214;
  --lp-text:#1b1430; --lp-text-rgb:27,20,48; --lp-text-2:#3d3352; --lp-text-2-rgb:61,51,82; --lp-muted:#5d5470; --lp-muted-rgb:93,84,112;
  --lp-pink:#bf006f; --lp-pink-rgb:191,0,111; --lp-cyan:#06707d; --lp-cyan-rgb:6,112,125;
  --lp-pick-bg:#e6f2f7; --lp-up:#087a39; --lp-down:#c12140; --lp-amber:#8a5a00;
  --lp-frame:linear-gradient(110deg,#ff547e,#eb2594,#905bd0);
  --lp-panel:linear-gradient(115deg,#fff,#fbf7ff 65%,#fff) }
.ls-settings-button { order:4; flex:0 0 auto; display:grid; place-items:center; width:40px; height:40px; padding:8px; border:1px solid var(--lp-border-strong); border-radius:11px; color:var(--lp-text); background:var(--lp-surface-2); cursor:pointer }
.ls-settings-button svg { width:22px; height:22px; stroke-linecap:round; stroke-linejoin:round }
.ls-settings-button:hover { color:var(--gta-accent); border-color:var(--gta-accent); background:rgba(var(--lp-pink-rgb),.039) }
.ls-settings-button:focus-visible { outline:2px solid var(--ls-cyan,var(--lp-cyan)); outline-offset:3px }
.ls-settings-dialog { width:390px; max-width:calc(100% - 28px); max-height:calc(100% - 28px); padding:0; box-sizing:border-box; overflow:auto; border:1px solid var(--gta-line); border-radius:20px; background:var(--gta-panel); color:var(--gta-ink); box-shadow:0 24px 90px #0006; font:400 14px/1.5 var(--ui,system-ui,sans-serif); color-scheme:dark }
.ls-settings-dialog::backdrop { background:rgba(var(--lp-bg-rgb),.62); backdrop-filter:blur(7px) }
.ls-settings-form { padding:24px }
.ls-settings-form header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:24px }
.ls-settings-form h2 { font:750 23px/1.2 var(--ui,system-ui,sans-serif); letter-spacing:-.6px; margin:0 0 7px }
.ls-settings-form p { color:var(--gta-muted); font-size:12px; margin:0 }
.ls-settings-close { border:0; background:none; color:var(--gta-muted); font-size:26px; padding:0; width:32px; height:32px; cursor:pointer }
.ls-setting-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:17px 0; border-top:1px solid var(--gta-line) }
.ls-setting-row > span { font-weight:650; min-width:0 }
.ls-setting-row small { display:block; color:var(--gta-muted); font-size:11px; font-weight:400; margin-top:4px }
.ls-setting-row select { color:var(--gta-ink); background:var(--gta-field); border:1px solid var(--gta-line); padding:8px; border-radius:8px; font:500 13px var(--ui,system-ui,sans-serif); max-width:46%; cursor:pointer }
.ls-setting-row input { width:19px; height:19px; flex:0 0 auto; accent-color:var(--gta-accent); cursor:pointer }
.ls-setting-scale { padding:17px 0; border-top:1px solid var(--gta-line) }
.ls-setting-scale label { display:flex; align-items:center; justify-content:space-between; font-weight:650 }
.ls-setting-scale output { color:var(--gta-accent); font-variant-numeric:tabular-nums }
.ls-setting-scale input { width:100%; margin:17px 0 5px; accent-color:var(--gta-accent); cursor:pointer }
.ls-scale-ends { display:flex; justify-content:space-between; color:var(--gta-muted); font-size:11px }
.ls-settings-form footer { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--gta-line); padding-top:22px }
.ls-settings-form footer button { padding:10px 13px; border-radius:8px; border:1px solid var(--gta-line); color:var(--gta-ink); background:transparent; font:600 13px var(--ui,system-ui,sans-serif); cursor:pointer }
.ls-settings-form footer .ls-settings-done { background:var(--gta-accent); color:#fff; border-color:var(--gta-accent) }
html[data-gta-cards="compact"] .ls-tiles { grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr)) }
/* Compact is exactly 7 a row on a wide screen and standard 5 (gta-tiles.css), the two the tiles button switches between
   (owner, 14.11.2026). Below 1400px compact falls back to as many 200px cards as fit. */
@media (min-width:1400px) { html[data-gta-cards="compact"] .ls-tiles { grid-template-columns:repeat(7,minmax(0,1fr)) } }
html[data-gta-cards="large"] .ls-tiles { grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr)) }
html[data-gta-cards="compact"] .ls-tile-body { padding:10px 12px }
html[data-gta-cards="compact"] .ls-tile-line .ls-money { font-size:14px }
html[data-gta-cards="compact"] .ls-tile-k { font-size:12px; margin-right:5px }
html[data-gta-motion="reduced"] body.is-leonida-mode *, html[data-gta-motion="reduced"] body.is-leonida-mode *::before, html[data-gta-motion="reduced"] body.is-leonida-mode *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important }
html[data-gta-theme="light"] { color-scheme:light; background:var(--lp-bg) }
html[data-gta-theme="light"] body.is-leonida-mode { background:var(--lp-bg); color:var(--lp-text) }
html[data-gta-theme="light"] body.is-leonida-mode .topnav { background:rgba(var(--lp-surface-rgb),.929); border-color:var(--lp-border) }
html[data-gta-theme="light"] .nav-brand, html[data-gta-theme="light"] .ls-discovery-nav button[aria-pressed="true"], html[data-gta-theme="light"] .ls-layout label { color:var(--lp-text) }
html[data-gta-theme="light"] .ls-settings-button { color:var(--lp-text-2); border-color:var(--lp-border-strong) }
html[data-gta-theme="light"] .ls-settings-dialog { color-scheme:light }
html[data-gta-theme="light"] body.is-leonida-mode .ls-summary-inline { background:linear-gradient(120deg,#fff,var(--lp-hover)); border-color:var(--lp-border) }
html[data-gta-theme="light"] body.is-leonida-mode .ls-summary-inline .ls-kpi { border-color:var(--lp-border) }
html[data-gta-theme="light"] .ls-kpi b { color:var(--lp-text) }
html[data-gta-theme="light"] .ls-search, html[data-gta-theme="light"] .ls-layout select, html[data-gta-theme="light"] .ls-layout-btn, html[data-gta-theme="light"] body.is-leonida-mode .ls-filter { background:#fff; color:var(--lp-text); border-color:var(--lp-border-strong) }
html[data-gta-theme="light"] .ls-search input { color:var(--lp-text) }
html[data-gta-theme="light"] .ls-search input::placeholder { color:var(--lp-muted) }
html[data-gta-theme="light"] body.is-leonida-mode .ls-filter.on, html[data-gta-theme="light"] .ls-layout-btn[aria-pressed="true"] { background:#fce6f2; border-color:var(--lp-pink); color:var(--lp-pink) }
html[data-gta-theme="light"] .ls-tile-link { background:#fff; border-color:rgba(var(--lp-pink-rgb),.28); box-shadow:0 12px 32px -16px rgba(var(--lp-pink-rgb),0) }
html[data-gta-theme="light"] .ls-tile:hover .ls-tile-link, html[data-gta-theme="light"] .ls-tile:focus-within .ls-tile-link { border-color:var(--ls-brand,#bf006f); box-shadow:6px 7px 0 -1px rgba(var(--lp-pink-rgb),.4), 0 18px 34px -16px rgba(var(--lp-pink-rgb),.45) }
html[data-gta-theme="light"] .ls-tile-cap, html[data-gta-theme="light"] .ls-tile-line .ls-money, html[data-gta-theme="light"] .ls-age, html[data-gta-theme="light"] .ls-money { color:var(--lp-text) }
/* The light rule above is for the table's Age cell; on a tile the age sits on a dark chip over the artwork and stays light
   (UI Sentinel, 2026-11-03: it measured 1.37:1). */
html[data-gta-theme="light"] .ls-tile-chip .ls-age { color:#fff }
html[data-gta-theme="light"] .ls-tile .ls-tile-copy { color:var(--lp-text-2) }
html[data-gta-theme="light"] body.is-leonida-mode #multiTable.ls-table { background:#fff; color:var(--lp-text) }
html[data-gta-theme="light"] body.is-leonida-mode #multiTable.ls-table tbody td, html[data-gta-theme="light"] body.is-leonida-mode #multiTable.ls-table tbody tr:first-child td { background:#fff; color:var(--lp-text); border-color:var(--lp-border) }
html[data-gta-theme="light"] body.is-leonida-mode #multiTable.ls-table tbody tr:hover td { background:var(--lp-hover) }
html[data-gta-theme="light"] body.is-leonida-mode #multiTable.ls-table thead th { background:var(--lp-hover); color:var(--lp-text-2); border-color:var(--lp-border) }
html[data-gta-theme="light"] body.is-leonida-mode .mt-scroll { background:#fff }
html[data-gta-theme="light"] body.is-leonida-mode .ls-statusbar { background:var(--lp-hover)!important; border-color:var(--lp-border)!important; color:var(--lp-text-2) }
html[data-gta-theme="light"] .ls-page { background:#fff; color:var(--lp-text-2); border-color:var(--lp-border-strong) }
html[data-gta-theme="light"] .ls-page.on { background:#fce6f2; color:var(--lp-pink) }
html[data-gta-theme="light"] body.is-leonida-mode .topnav #lsHotDropsBtn { background:#fff; color:var(--lp-text-2); border-color:var(--lp-border-strong) }
html[data-gta-theme="light"] .ls-kpi-delta.is-up { color:#08783a; background:none }
html[data-gta-theme="light"] .ls-kpi-delta.is-down { color:#b72442; background:none }
html[data-gta-theme="light"] .ls-popover { background:#fff; color:var(--lp-text); border-color:var(--lp-border) }
html[data-gta-theme="light"] .ls-empty b, html[data-gta-theme="light"] .ls-status-items b { color:var(--lp-text) }
html[data-gta-theme="light"] body.is-leonida-mode .ls-token-page, html[data-gta-theme="light"] body.is-leonida-mode .ls-token-line, html[data-gta-theme="light"] body.is-leonida-mode .ls-token-line b { color:var(--lp-text) }
/* ⚠ THE SIGNED PERCENTAGES ARE PAINTED INLINE IN THE DARK SET'S GREEN AND RED (gta.html rowHtml, hotMeta, gta-tiles.js), which
   on white read as a pale lime (owner, 18.11.2026). The light theme maps those two literals to its own up and down colours,
   wherever they are printed: the table, the tiles, Hot Drops and the sparkline. */
html[data-gta-theme="light"] [style*="#61d638"] { color:var(--lp-up)!important }
html[data-gta-theme="light"] [style*="#ff4d5f"] { color:var(--lp-down)!important }
html[data-gta-theme="light"] [stroke="#61d638"] { stroke:var(--lp-up) }
html[data-gta-theme="light"] [stroke="#ff4d5f"] { stroke:var(--lp-down) }
/* The "Site updated" bar was a dark glass panel with the theme's text colour: dark letters on dark in the light theme. */
html[data-gta-theme="light"] .ls-update { background:rgba(var(--lp-surface-rgb),.97); border-color:var(--lp-border-strong); color:var(--lp-text); box-shadow:0 14px 40px rgba(var(--lp-text-rgb),.18) }
html[data-gta-theme="light"] .ls-update-x:hover { background:rgba(var(--lp-text-rgb),.06); color:var(--lp-text) }
/* The copy button sits on the white card body: a black square on hover there (owner, 18.11.2026). */
html[data-gta-theme="light"] .ls-tile .ls-tile-copy:hover, html[data-gta-theme="light"] .ls-tile .ls-tile-copy:focus-visible { background:rgba(var(--lp-pink-rgb),.1); color:var(--lp-pink) }
/* The header buttons' hover was the dark set's navy in both themes. */
html[data-gta-theme="light"] body.is-leonida-mode .topnav #lsHotDropsBtn:hover, html[data-gta-theme="light"] body.is-leonida-mode .topnav #lsHotDropsBtn[aria-expanded="true"] { background:#fce6f2; border-color:var(--lp-pink); color:var(--lp-pink) }
html[data-gta-theme="light"] .ls-reset:hover { color:var(--lp-pink) }
html[data-gta-theme="light"] .ls-pop-row { border-bottom-color:var(--lp-border) }
html[data-gta-theme="light"] .ls-popover { box-shadow:0 22px 60px rgba(var(--lp-text-rgb),.18) }
html[data-gta-theme="dark"] .ls-settings-form footer .ls-settings-done { color:#180712 }
@media(max-width:599.98px) { .ls-settings-button { width:36px; height:36px; padding:7px } body.is-leonida-mode .nav-links { gap:8px; min-width:0; flex-wrap:wrap } .ls-settings-form { padding:20px } .ls-setting-row select { font-size:16px } }
@media(max-width:400px) {
  html[data-gta-scale="110"] body.is-leonida-mode .ls-summary-inline, html[data-gta-scale="120"] body.is-leonida-mode .ls-summary-inline { grid-template-columns:1fr }
  html[data-gta-scale="110"] body.is-leonida-mode .ls-kpi, html[data-gta-scale="120"] body.is-leonida-mode .ls-kpi { border-left:0 }
}
/* The hot chip on a light ground: its dark-theme pink text is unreadable on its own pale fill. */
html[data-gta-theme="light"] .ls-why-hot { color:#a3125e; background:#fde6f1; border-color:#ef8fbe }
html[data-gta-theme="light"] .ls-why-volume { color:var(--lp-text-2); border-color:var(--lp-border-strong) }
/* ⭐ HOT DROPS IS REACHABLE AT EVERY WIDTH (QA, 17.11.2026: below 1100px its header button had no size, so the six biggest
   movers could not be opened). There it is the flame alone, the settings button's size, its count on the corner; the
   label stays in the button for screen readers. The popover is already pinned under the bar below 980px (gta.html). */
@media (max-width:1099.98px) {
  body.is-leonida-mode .topnav .ls-nav-action-wrap:not([hidden]) { display:inline-flex; order:4 }
  body.is-leonida-mode .topnav #lsHotDropsBtn { position:relative; display:grid; place-items:center; width:40px; height:40px; min-width:40px; padding:0; gap:0; font-size:0; border:1px solid var(--lp-border-strong); border-radius:11px; background:var(--lp-surface-2); color:var(--lp-text) }
  body.is-leonida-mode .topnav #lsHotDropsBtn .nav-ico { width:18px; height:18px; margin:0 }
  /* A small corner badge (QA, 18.11.2026: at 1024 px the 23 px count sat over the flame). */
  body.is-leonida-mode .topnav #lsHotDropsBtn .ls-nav-count { position:absolute; top:-7px; right:-7px; margin:0; min-width:17px; height:17px; padding:0 4px; font-size:10px; line-height:17px }
  html[data-gta-theme="light"] body.is-leonida-mode .topnav #lsHotDropsBtn { color:var(--lp-text-2); border-color:var(--lp-border-strong); background:#fff }
}
/* Below 860px the header row has no room for it (measured: the bar wrapped to two rows at 768 and 800), so the way in is
   "Drops" beside Hot in the filters; the header button goes, but its
   wrap stays drawn at no size, because the popover inside it is pinned to the viewport there and must not be hidden. */
.ls-drops-mini { display:none }
@media (max-width:859.98px) {
  .ls-drops-mini { display:inline-flex }
  body.is-leonida-mode .topnav .ls-nav-action-wrap:not([hidden]) { width:0; min-width:0; overflow:visible; margin:0 }
  body.is-leonida-mode .topnav #lsHotDropsBtn { display:none }
}
/* The token name gets room on the table's step-down (QA, 17.11.2026: at 1024 names were cut to two or three letters): the
   avatar is 48px there instead of 64, and the hover zoom keeps its proportion through --ls-ava. */
@media (min-width:768px) and (max-width:1239.98px) {
  body.is-leonida-mode #multiTable { --ls-ava:48px }
}
/* The card's previous/next arrows were cream on a light glass in the light theme: invisible (owner, 18.11.2026). */
html[data-gta-theme="light"] .ls-card-navigation button { color:var(--lp-pink); border-color:var(--lp-border-strong); background:rgba(var(--lp-surface-rgb),.96); box-shadow:0 10px 30px rgba(var(--lp-text-rgb),.18) }
html[data-gta-theme="light"] .ls-card-navigation button:hover:not(:disabled), html[data-gta-theme="light"] .ls-card-navigation button:focus-visible { color:#fff; background:var(--lp-pink); border-color:var(--lp-pink) }
/* QA sweep, 18.11.2026: the "Launch token SOON" chip stayed dark on the light header. */
html[data-gta-theme="light"] body.is-leonida-mode .topnav .ls-launch-soon { background:#fff; color:var(--lp-text-2); border-color:rgba(var(--lp-pink-rgb),.45); box-shadow:none }
html[data-gta-theme="light"] .ls-launch-soon::before { color:#c2187a }
html[data-gta-theme="light"] .ls-launch-soon b { background:#fce6f2; border-color:rgba(var(--lp-pink-rgb),.35); color:#a3125f }
