/* GTACodes.top — dark / neon-green theme carried over from the original landing page */

:root {
  --header-h: 4rem;
  --bg: #050508;
  --bg-2: #10101a;
  --panel: #12121c;
  --panel-2: #191926;
  --line: #262636;
  --text: #f0f0f0;
  --muted: #a5a5ba;
  --heading: #fff;
  --accent: #00ff99;
  --accent-2: #00c982;
  --on-accent: #03130c;

  --ps-cross: #8db4ff;
  --ps-circle: #ff7b88;
  --ps-square: #ffa3dc;
  --ps-triangle: #6cf2ad;
  --xb-a: #7beba6;
  --xb-b: #ff8585;
  --xb-x: #86c0ff;
  --xb-y: #ffd977;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 50% -160px, rgba(0, 255, 153, .13), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 620px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #7dffc9; }

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 3.2rem + 3vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); margin-bottom: .6rem; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); margin: 2.2rem 0 .6rem; }
p { max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .7rem 1.1rem; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 8, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--heading); text-decoration: none; font-weight: 900; font-size: 1.2rem;
  letter-spacing: -.02em; white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { color: var(--accent); }
.site-nav {
  display: flex; gap: 1.25rem; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  font-weight: 600; font-size: .95rem;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--text); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-header .cta { padding: .55rem 1.2rem; font-size: .9rem; margin-left: .25rem; }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 1.05rem; line-height: 1.2; text-decoration: none;
  padding: .95rem 2.1rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cta:hover, .cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 255, 153, .28);
  color: var(--on-accent); background: #4dffb8;
}
.cta--ghost {
  background: transparent; color: var(--heading);
  box-shadow: inset 0 0 0 2px var(--line);
}
.cta--ghost:hover, .cta--ghost:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); background: transparent; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 2rem; text-align: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead {
  margin: 0 auto 1.75rem; max-width: 46rem;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.55; color: #d6d6e4;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.trust {
  margin-top: 1.25rem; font-size: .9rem; color: var(--muted); max-width: none;
}
.trust strong { color: var(--text); }

/* jump chips */
.jump {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  padding: 0 0 2.5rem; list-style: none;
}
.jump a {
  display: inline-block; padding: .4rem .9rem; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.jump a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- sections ---------- */
.block { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.block > .lead, .block p { color: #d2d2e0; margin-bottom: .9rem; }
.block h2 + .lead { margin-top: .2rem; }
.block ul, .block ol { padding-left: 1.3rem; max-width: 68ch; margin-bottom: .9rem; }
.block li { margin-bottom: .4rem; color: #d2d2e0; }
.block li::marker { color: var(--accent); }
.combo li { margin-bottom: 0; }
.combo li::marker { color: inherit; }
.block strong { color: var(--heading); }

.note {
  margin: 1.1rem 0; padding: .95rem 1.15rem; max-width: 72ch;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; color: #d2d2e0;
}
.note p { margin-bottom: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: .9rem 0 1.4rem; border-radius: var(--radius); }
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .94rem;
}
caption {
  caption-side: top; text-align: left; padding: .85rem 1rem .2rem;
  color: var(--muted); font-size: .86rem; font-weight: 600;
}
th, td { padding: .7rem 1rem; text-align: left; vertical-align: middle; }
thead th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
tbody tr + tr td, tbody tr + tr th { border-top: 1px solid #1c1c29; }
tbody tr:hover td, tbody tr:hover th { background: #15151f; }
td:first-child, th:first-child { padding-left: 1rem; }
td:last-child, th:last-child { padding-right: 1rem; }
tr.group th {
  padding: .5rem 1rem; background: #0c0c14; color: var(--accent);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
}
.dash { color: #5c5c70; }

/* code words + phone numbers */
.code, .num {
  display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .92rem;
  color: #c9ffea; background: #0c2a1f; border: 1px solid #164b37; border-radius: 8px;
  padding: .2rem .55rem; white-space: nowrap; letter-spacing: .04em;
}
.num { color: #e6f0ff; background: #121c2c; border-color: #243b5c; letter-spacing: .02em; }

/* copy buttons (only when JS is available) */
.copy {
  display: none; margin-left: .4rem; width: 2.1rem; height: 2.1rem; flex: none;
  align-items: center; justify-content: center; border-radius: 7px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted); font: 700 1rem/1 var(--font);
}
.js .copy { display: inline-flex; vertical-align: middle; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.is-copied { border-color: var(--accent); color: var(--accent); background: #0c2a1f; }
.cell-code { white-space: nowrap; }

/* button combos */
.combo { display: block; list-style: none; margin: 0; padding: 0; max-width: 34rem; }
.combo li { display: inline-block; margin: .1rem .25rem .1rem 0; color: inherit; }
kbd.key {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .58rem; border-radius: 8px; white-space: nowrap;
  font: 700 .8rem/1.2 var(--font); color: var(--heading); letter-spacing: .01em;
  background: #1d1d2b; border: 1px solid #303044; border-bottom-width: 3px;
}
kbd.key i { font-style: normal; font-size: .95em; line-height: 1; }
.k-cross i { color: var(--ps-cross); }  .k-circle i { color: var(--ps-circle); }
.k-square i { color: var(--ps-square); } .k-triangle i { color: var(--ps-triangle); }
.k-a i { color: var(--xb-a); }  .k-b i { color: var(--xb-b); }
.k-x i { color: var(--xb-x); }  .k-y i { color: var(--xb-y); }
.k-up i, .k-down i, .k-left i, .k-right i { color: var(--accent); }
.k-l1 i, .k-r1 i, .k-l2 i, .k-r2 i, .k-lb i, .k-rb i, .k-lt i, .k-rt i { color: #ffd27a; }

.pending { color: #6c6c82; font-style: italic; }

/* four-column tables: keep the text columns narrow so the code column gets the room */
#gta-6 table th:nth-child(1), #gta-6 table td:nth-child(1) { width: 16%; }
#gta-6 table th:nth-child(2), #gta-6 table td:nth-child(2) { width: 21%; }
#gta-6 table th:nth-child(3), #gta-6 table td:nth-child(3) { width: 25%; }
#gta-6 .combo { max-width: none; }
/* two-column code tables: name column stays narrow so combos wrap less */
#gta-5 table th:nth-child(1), #gta-5 table td:nth-child(1) { width: 36%; }
#gta-5 .combo { max-width: none; }

/* collapse wide tables into labelled cards on small screens */
@media (max-width: 720px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tbody tr { display: block; padding: .85rem 0 .6rem; border-top: 1px solid #1c1c29; }
  table.stack tbody tr:first-child, table.stack tbody tr.group + tr { border-top: 0; }
  table.stack tbody tr:hover td, table.stack tbody tr:hover th { background: transparent; }
  table.stack tbody th, table.stack tbody td {
    display: block; width: auto !important; border: 0 !important; padding: .2rem 1rem;
  }
  table.stack tbody th::before, table.stack tbody td::before {
    content: attr(data-label); display: block; margin-bottom: .1rem;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  }
  table.stack tbody th[scope="row"] { font-size: 1.05rem; padding-top: .3rem; }
  table.stack tbody th[scope="row"]::before { content: none; }
  table.stack tr.group { padding: 0; }
  table.stack tr.group th { padding: .75rem 1rem .15rem; }
  table.stack tr.group th::before { content: none; }
  .combo { max-width: none; }
  /* short values (code words, phone numbers) stay on one line with their label */
  table.stack.t-compact tbody td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  table.stack.t-compact tbody td::before { display: inline-block; margin: 0; flex: none; padding-top: 0; }
}

/* ---------- game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.15rem 1.2rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.card .go { margin-top: auto; padding-top: .5rem; color: var(--accent); font-weight: 700; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1rem; }
.faq {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .6rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: .95rem 1.1rem;
  font-weight: 700; color: var(--heading); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; display: inline-block; width: 1.5rem; color: var(--accent);
  font-weight: 800; font-size: 1.2rem; line-height: 1; vertical-align: -1px;
}
.faq[open] summary::before { content: "\2212"; }
.faq .a { padding: 0 1.1rem 1rem 2.6rem; color: #d2d2e0; }
.faq .a p { margin-bottom: .5rem; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- CTA band + sources + footer ---------- */
.cta-band { text-align: center; padding: 3rem 0; }
.cta-band p { color: var(--muted); margin: 0 auto 1.1rem; }
.sources ul { padding-left: 1.1rem; font-size: .92rem; }
.sources li { margin-bottom: .3rem; color: var(--muted); }
.sources a { color: #cfe9ff; }
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.site-footer h4 { font-size: .95rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .fine { margin-top: 1.6rem; max-width: none; font-size: .82rem; line-height: 1.6; }

@media (max-width: 640px) {
  :root { --header-h: 5.7rem; }
  .site-header .wrap { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: .55rem; }
  .site-header .cta { display: none; }
  .brand { font-size: 1.05rem; padding-bottom: .4rem; }
  .brand svg { width: 26px; height: 26px; }
  .site-nav {
    order: 2; flex-basis: 100%; margin-left: 0; padding-bottom: .5rem; font-size: .9rem;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  th, td { padding: .62rem .75rem; }
  td:first-child, th:first-child { padding-left: .85rem; }
  td:last-child, th:last-child { padding-right: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
