/* GTA cheat codes finder (tools.d/gta-5-cheats.cjs and its variants). Every rule under #visu-tools.vt-gta-5-cheats (the
   variant pages carry that class too). css/gta-san-andreas-cheats.css and css/gta-vice-city-cheats.css are byte copies of
   this file because the release links a page's own css/<id>.css only (test/gta-5-cheats.test.mjs keeps them equal).
   Layout stability: the server HTML already has the final layout. With scripting on (media query, plus .vt-gc-js for
   browsers without it) the bar, the selected-code panel and the stars are shown from the first paint, and every
   platform block of a row (and every how-to-enter line) shares one grid cell: only the block of root[data-plat] is
   visible, so a platform switch never moves anything. With scripting off, everything is listed with its platform. */
#visu-tools.vt-gta-5-cheats [hidden] { display: none !important; }
#visu-tools.vt-gta-5-cheats .vt-gc { display: block; }
#visu-tools.vt-gta-5-cheats .vt-gc-bar, #visu-tools.vt-gta-5-cheats .vt-gc-sel, #visu-tools.vt-gta-5-cheats .vt-gc-count, #visu-tools.vt-gta-5-cheats .vt-gc-fav { display: none; }
#visu-tools.vt-gta-5-cheats .vt-gc-bar { position: sticky; top: var(--vt-site-header-h, 0px); z-index: 6; gap: 4px; margin: 0 -4px; padding: 4px; background: var(--vt-surface, #fff); border-bottom: 1px solid var(--vt-line); }
#visu-tools.vt-gta-5-cheats .vt-gc-find { position: relative; display: flex; gap: 6px; align-items: stretch; min-width: 0; }
#visu-tools.vt-gta-5-cheats .vt-gc-plat { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; border: 1px solid var(--vt-ink); border-radius: 10px; background: #fff; color: var(--vt-ink); font-size: 14px; font-weight: 650; }
#visu-tools.vt-gta-5-cheats .vt-gc-plat:focus-visible { outline: 2px solid var(--vt-accent); outline-offset: 2px; }
#visu-tools.vt-gta-5-cheats .vt-gc-find input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--vt-line); border-radius: 10px; font-size: 16px; background: #fff; color: var(--vt-ink); }
/* Phones: one row (picker + search icon). The search opens over the picker inside the same row: nothing moves. */
#visu-tools.vt-gta-5-cheats .vt-gc-search { position: absolute; inset: 0; z-index: 2; display: none; gap: 6px; background: var(--vt-surface, #fff); }
#visu-tools.vt-gta-5-cheats .vt-gc-find.vt-gc-open .vt-gc-search { display: flex; }
#visu-tools.vt-gta-5-cheats .vt-gc-sopen, #visu-tools.vt-gta-5-cheats .vt-gc-sclose { flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--vt-line); border-radius: 10px; background: #fff; color: var(--vt-ink); cursor: pointer; }
#visu-tools.vt-gta-5-cheats .vt-gc-sopen:focus-visible, #visu-tools.vt-gta-5-cheats .vt-gc-sclose:focus-visible { outline: 2px solid var(--vt-accent); outline-offset: 2px; }
#visu-tools.vt-gta-5-cheats .vt-gc-favonly { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--vt-line); border-radius: 10px; background: #fff; color: var(--vt-ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
#visu-tools.vt-gta-5-cheats .vt-gc-favonly[aria-pressed="true"] { border-color: var(--vt-ink); background: var(--vt-tint, #f3f6fa); }
#visu-tools.vt-gta-5-cheats .vt-gc-favonly[aria-pressed="true"] svg { fill: #f2b01e; stroke: #b07c06; }
#visu-tools.vt-gta-5-cheats .vt-gc-count { margin: 6px 0 0; font-size: 12px; line-height: 16px; height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--vt-muted); }
#visu-tools.vt-gta-5-cheats .vt-gc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#visu-tools.vt-gta-5-cheats .vt-gc-sel { margin: 6px 0 2px; padding: 6px 10px; border: 1px solid var(--vt-line); border-radius: var(--vt-radius, 12px); background: var(--vt-bg); }
#visu-tools.vt-gta-5-cheats .vt-gc-selrow { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; min-height: 20px; font-size: 13px; line-height: 20px; }
#visu-tools.vt-gta-5-cheats .vt-gc-sellab { color: var(--vt-muted); }
#visu-tools.vt-gta-5-cheats #vt-gc-sel { font-family: ui-monospace, Consolas, monospace; font-size: 14px; font-weight: 700; color: var(--vt-ink); overflow-wrap: anywhere; }
#visu-tools.vt-gta-5-cheats .vt-gc-selrow .vt-status { margin: 0; font-size: 13px; }
#visu-tools.vt-gta-5-cheats .vt-gc-actions { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
#visu-tools.vt-gta-5-cheats .vt-gc-actions .vt-btn { min-height: 44px; padding-left: 12px; padding-right: 12px; }
#visu-tools.vt-gta-5-cheats .vt-gc-actions .vt-link-btn { min-height: 44px; }
#visu-tools.vt-gta-5-cheats .vt-gc-selhint { color: var(--vt-muted); }
#visu-tools.vt-gta-5-cheats .vt-gc-selnote { margin: 0 0 4px; font-size: 13px; color: var(--vt-warn, #9a5b00); }
#visu-tools.vt-gta-5-cheats .vt-gc-enters p { margin: 8px 0 0; font-size: 14px; color: var(--vt-text); }
#visu-tools.vt-gta-5-cheats .vt-gc-cat { margin-top: 18px; scroll-margin-top: calc(var(--vt-site-header-h, 0px) + 64px); }
#visu-tools.vt-gta-5-cheats .vt-gc-cat h2 { margin: 0 0 2px; font-size: 19px; }
#visu-tools.vt-gta-5-cheats .vt-gc-rows { list-style: none; margin: 0; padding: 0; }
#visu-tools.vt-gta-5-cheats .vt-gc-row { padding: 12px 0; border-bottom: 1px solid var(--vt-line); scroll-margin-top: calc(var(--vt-site-header-h, 0px) + 64px); }
#visu-tools.vt-gta-5-cheats .vt-gc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
#visu-tools.vt-gta-5-cheats .vt-gc-name { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 650; color: var(--vt-ink); }
#visu-tools.vt-gta-5-cheats .vt-gc-fav { flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -8px -6px -8px 0; border: 0; border-radius: 10px; background: transparent; color: var(--vt-muted); cursor: pointer; }
#visu-tools.vt-gta-5-cheats .vt-gc-fav[aria-pressed="true"] { color: #b07c06; }
#visu-tools.vt-gta-5-cheats .vt-gc-fav[aria-pressed="true"] svg { fill: #f2b01e; }
#visu-tools.vt-gta-5-cheats .vt-gc-fav:focus-visible, #visu-tools.vt-gta-5-cheats .vt-gc-btn:focus-visible, #visu-tools.vt-gta-5-cheats .vt-gc-favonly:focus-visible { outline: 2px solid var(--vt-accent); outline-offset: 2px; }
#visu-tools.vt-gta-5-cheats .vt-gc-note { margin: 2px 0 0; font-size: 13px; color: var(--vt-muted); }
#visu-tools.vt-gta-5-cheats .vt-gc-codes { display: grid; gap: 8px; margin-top: 8px; }
#visu-tools.vt-gta-5-cheats .vt-gc-code { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 6px 8px; min-width: 0; }
#visu-tools.vt-gta-5-cheats .vt-gc-plab { flex: 0 0 100%; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--vt-muted); }
#visu-tools.vt-gta-5-cheats .vt-gc-btn { position: relative; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; width: 100%; min-height: 44px; margin: 0; padding: 8px; border: 1px solid var(--vt-line); border-radius: 10px; background: #fff; color: var(--vt-ink); text-align: left; cursor: pointer; }
#visu-tools.vt-gta-5-cheats .vt-gc-btn:hover { border-color: var(--vt-ink); }
#visu-tools.vt-gta-5-cheats .vt-gc-btn.vt-gc-on { border-color: var(--vt-accent); box-shadow: inset 0 0 0 1px var(--vt-accent); }
#visu-tools.vt-gta-5-cheats .vt-gc-btn kbd { display: inline-block; padding: 3px 7px; border: 1px solid var(--vt-line-2, #c9d3df); border-radius: 6px; background: var(--vt-bg); font: 600 14px/1.25 ui-monospace, Consolas, monospace; color: var(--vt-ink); box-shadow: none; }
#visu-tools.vt-gta-5-cheats .vt-gc-word { font: 700 17px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
#visu-tools.vt-gta-5-cheats .vt-gc-or { font-size: 13px; color: var(--vt-muted); }
#visu-tools.vt-gta-5-cheats .vt-gc-st .vt-gc-sttext { font-size: 13px; color: var(--vt-muted); }
#visu-tools.vt-gta-5-cheats .vt-gc-removed .vt-gc-sttext, #visu-tools.vt-gta-5-cheats .vt-gc-unconfirmed .vt-gc-sttext { display: block; width: 100%; padding: 8px 10px; border: 1px dashed var(--vt-line-2, #c9d3df); border-radius: 10px; font-weight: 600; color: var(--vt-warn, #9a5b00); background: #fff; }
#visu-tools.vt-gta-5-cheats .vt-gc-none .vt-gc-sttext, #visu-tools.vt-gta-5-cheats .vt-gc-deonly .vt-gc-sttext { font-style: italic; }
#visu-tools.vt-gta-5-cheats .vt-gc-empty, #visu-tools.vt-gta-5-cheats .vt-gc-hidden { margin: 14px 0 0; font-size: 14px; color: var(--vt-muted); }
#visu-tools.vt-gta-5-cheats .vt-gc-about { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--vt-line); font-size: 14px; color: var(--vt-text); }
#visu-tools.vt-gta-5-cheats .vt-gc-about p { margin: 0 0 8px; }
#visu-tools.vt-gta-5-cheats .vt-gc-fan { font-weight: 600; }
@media (scripting: enabled) {
  #visu-tools.vt-gta-5-cheats .vt-gc-bar { display: grid; }
  #visu-tools.vt-gta-5-cheats .vt-gc-sel, #visu-tools.vt-gta-5-cheats .vt-gc-count { display: block; }
  #visu-tools.vt-gta-5-cheats .vt-gc-fav { display: inline-flex; }
  #visu-tools.vt-gta-5-cheats .vt-gc-plab { display: none; }
  #visu-tools.vt-gta-5-cheats .vt-gc-codes, #visu-tools.vt-gta-5-cheats .vt-gc-enters { display: grid; }
  #visu-tools.vt-gta-5-cheats .vt-gc-code, #visu-tools.vt-gta-5-cheats .vt-gc-enter { grid-area: 1 / 1; }
  #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="ps"] .vt-gc-code:not([data-p="ps"]), #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="ps"] .vt-gc-enter:not([data-p="ps"]),
  #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="psde"] .vt-gc-code:not([data-p="psde"]), #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="psde"] .vt-gc-enter:not([data-p="psde"]),
  #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="xbox"] .vt-gc-code:not([data-p="xbox"]), #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="xbox"] .vt-gc-enter:not([data-p="xbox"]),
  #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="x360"] .vt-gc-code:not([data-p="x360"]), #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="x360"] .vt-gc-enter:not([data-p="x360"]),
  #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="pc"] .vt-gc-code:not([data-p="pc"]), #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="pc"] .vt-gc-enter:not([data-p="pc"]),
  #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="pcde"] .vt-gc-code:not([data-p="pcde"]), #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="pcde"] .vt-gc-enter:not([data-p="pcde"]),
  #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="phone"] .vt-gc-code:not([data-p="phone"]), #visu-tools.vt-gta-5-cheats .vt-gc[data-plat="phone"] .vt-gc-enter:not([data-p="phone"]) { visibility: hidden; }
}
/* Browsers without the scripting media query: the same layout once the page script has run. */
#visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-bar { display: grid; }
#visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-sel, #visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-count { display: block; }
#visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-fav { display: inline-flex; }
#visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-plab { display: none; }
#visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-codes, #visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-enters { display: grid; }
#visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-code, #visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-enter { grid-area: 1 / 1; }
#visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-code:not([data-current]), #visu-tools.vt-gta-5-cheats .vt-gc-js .vt-gc-enter:not([data-current]) { visibility: hidden; }
@media (max-width: 600px) {
  #visu-tools.vt-gta-5-cheats .vt-gc-favlab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #visu-tools.vt-gta-5-cheats .vt-gc-favonly { flex: 0 0 44px; width: 44px; padding: 0; justify-content: center; }
}
/* From 600 px wide (tablets, a phone in landscape): picker and search field side by side; the bar stays 52 px. */
@media (min-width: 600px) {
  #visu-tools.vt-gta-5-cheats .vt-gc-search { position: static; display: flex; flex: 1 1 auto; }
  #visu-tools.vt-gta-5-cheats .vt-gc-sopen, #visu-tools.vt-gta-5-cheats .vt-gc-sclose { display: none; }
  #visu-tools.vt-gta-5-cheats .vt-gc-plat { flex: 0 1 auto; max-width: 360px; }
}
@media (min-width: 861px) {
  #visu-tools.vt-gta-5-cheats .vt-gc-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media print {
  #visu-tools.vt-gta-5-cheats .vt-gc-bar, #visu-tools.vt-gta-5-cheats .vt-gc-sel, #visu-tools.vt-gta-5-cheats .vt-gc-fav { display: none !important; }
  #visu-tools.vt-gta-5-cheats .vt-gc-btn { border: 0; padding: 0; min-height: 0; }
}
