/* GTA 6 Cheats Live — app-style layout */
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url("/assets/fonts/yellowtail-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; }

:root {
  --bg: #1a1233;
  --gap: #140d29;
  --card: #241a49;
  --card-2: #2d2259;
  --chip: #2a2054;
  --line: #3a2e6e;
  --text: #ffffff;
  --muted: #b9afd9;
  --pink: #ff5fa8;
  --pink-glow: #ff2d8f;
  --cyan: #45e6ff;
  --orange: #f7a35c;
  --grad: linear-gradient(90deg, #f7a35c, #ee5d9b);
  --lav: #ddd5f6;
  --cream: #fbf1e6;
  --k: 44px;
  --col: 780px;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.45;
  background: var(--bg) linear-gradient(180deg, #5d2547 0, #3a1c48 220px, var(--bg) 520px) no-repeat;
  min-height: 100vh;
}
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--pink); color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.col { max-width: var(--col); margin: 0 auto; }

/* ---------- Top bar (logo + desktop tabs) ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 6px; max-width: var(--col); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-script { font-family: var(--script); font-size: 40px; line-height: 1; color: #ffe9f5; padding: 0 4px 4px 0;
  text-shadow: 0 0 2px #fff, 0 0 8px var(--pink), 0 0 18px var(--pink), 0 0 34px var(--pink-glow); }
.logo-live { font-weight: 700; font-size: 12px; color: #062a31; background: var(--cyan); border-radius: 999px; padding: 3px 9px 2px; box-shadow: 0 0 12px rgba(69, 230, 255, .6); }
.logo-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e0185c; margin-right: 5px; vertical-align: 1px; }
.desk-tabs { display: flex; gap: 4px; }
.desk-tabs a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
.desk-tabs a svg { width: 18px; height: 18px; }
.desk-tabs a:hover { background: rgba(255, 255, 255, .08); }
.desk-tabs a[aria-current="page"] { background: var(--grad); color: #2b0c1e; }

/* ---------- Search + chips (sticky) ---------- */
.sticky { position: sticky; top: 0; z-index: 20; padding: 10px 16px 12px; max-width: var(--col); margin: 0 auto;
  background: linear-gradient(180deg, rgba(58, 28, 72, .97), rgba(46, 24, 66, .94)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stuck .sticky { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); }
.searchbar { display: flex; align-items: center; gap: 10px; background: rgba(20, 13, 41, .7); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 0 8px 0 16px; height: 54px; }
.searchbar svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 18px; height: 100%; outline: none; }
.searchbar input::placeholder { color: #a197c8; }
.gear { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--grad); color: #2b0c1e; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.gear svg { width: 22px; height: 22px; color: #2b0c1e; }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 700; font-size: 17px; color: var(--text);
  background: var(--chip); border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; text-decoration: none; transition: transform .12s; }
.chip svg { width: 20px; height: 20px; }
.chip[aria-pressed="true"], .chip.on { background: var(--grad); color: #2b0c1e; box-shadow: 0 6px 18px -6px rgba(238, 93, 155, .7); }
.chip:active { transform: scale(.96); }

/* ---------- Banner ---------- */
.banner { display: flex; gap: 16px; align-items: center; margin: 14px 16px 6px; padding: 16px 18px; border-radius: 20px;
  background: rgba(36, 26, 73, .75); border: 1px solid var(--line); }
.banner .sun { width: 64px; height: 64px; flex-shrink: 0; }
.banner h1, .banner h2 { margin: 0 0 3px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.banner p { margin: 0; color: var(--muted); font-size: 16px; }
.banner .count { color: var(--orange); font-weight: 700; }

/* ---------- Section heading (neon script) ---------- */
.sec-head { display: flex; align-items: center; gap: 14px; padding: 26px 18px 12px; scroll-margin-top: 150px; }
.sec-head h2 { margin: 0; font-family: var(--script); font-weight: 400; font-size: 44px; line-height: 1; color: #ffb3d6; padding-right: 6px;
  text-shadow: 0 0 6px rgba(255, 95, 168, .8), 0 0 18px rgba(255, 45, 143, .5); }
.sec-head::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 95, 168, .8), rgba(255, 95, 168, 0)); }

/* ---------- Cheat card ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.cheat { background: var(--card); padding: 16px 16px 18px; }
.cheat-top { display: grid; grid-template-columns: 64px 1fr 40px; gap: 14px; align-items: start; }
.ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 38px; line-height: 1;
  background: radial-gradient(120% 120% at 30% 20%, #3d2f7a, #231a49); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.hide-icons .ico { display: none; }
.hide-icons .cheat-top { grid-template-columns: 1fr 40px; }
.cheat h3 { margin: 2px 0 4px; font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.2px; }
.cheat p { margin: 0; color: var(--muted); font-size: 17px; }
.tag { display: inline-block; margin-left: 8px; vertical-align: 3px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.tag.est { background: rgba(247, 163, 92, .16); color: var(--orange); }
.tag.ok { background: rgba(69, 230, 255, .16); color: var(--cyan); }
.fav { width: 40px; height: 40px; border: 0; background: none; color: #8f84bd; cursor: pointer; display: grid; place-items: center; padding: 0; }
.fav svg { width: 30px; height: 30px; }
.fav[aria-pressed="true"] { color: #ffd34d; }
.fav[aria-pressed="true"] svg path { fill: currentColor; }

/* Button sequence */
.seq { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 16px; padding: 0; list-style: none; cursor: pointer; }
.seq li { width: var(--k); height: var(--k); display: grid; place-items: center; transition: transform .15s, opacity .15s; }
.seq li.sh { width: auto; min-width: calc(var(--k) * 1.2); }
.seq svg { width: 100%; height: 100%; }
.pill { display: grid; place-items: center; height: calc(var(--k) * .74); padding: 0 calc(var(--k) * .22); border-radius: 999px; background: var(--lav); color: #2a2050; font-weight: 800; font-size: calc(var(--k) * .38); }
.face { width: 100%; height: 100%; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.face svg { width: 52%; height: 52%; }
.xb { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: calc(var(--k) * .48); color: #fff; background: #1d1640; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.xb.a { color: #5ee36b; } .xb.b { color: #ff5a5f; } .xb.x { color: #4aa3ff; } .xb.y { color: #ffd23f; }
.seq.practice li { opacity: .3; }
.seq.practice li.now { opacity: 1; transform: scale(1.18); }
.seq.practice li.done { opacity: .75; }
.hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); display: none; }
.seq.practice + .hint { display: block; }

/* Phone row */
.phone { display: none; align-items: center; gap: 10px; margin-top: 14px; font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.phone svg { width: 26px; height: 26px; color: var(--orange); }
.phone a { color: var(--text); text-decoration: none; }
.show-phone .phone, .cheat.phone-only .phone { display: flex; }

.no-results { display: none; margin: 30px 18px; padding: 24px; text-align: center; color: var(--muted); background: var(--card); border-radius: 18px; }
.no-results strong { display: block; color: var(--text); font-size: 19px; margin-bottom: 4px; }

/* ---------- Ads (off until approved) ---------- */
.ad-slot { display: none; }
body[data-ads="on"] .ad-slot { display: block; min-height: 120px; background: var(--card); }

/* ---------- Generic panels (map, online, merch, info pages) ---------- */
.panel { background: var(--card); margin: 0 0 10px; padding: 20px 18px; }
.panel h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.panel p { margin: 0 0 12px; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }
.prose { padding: 4px 18px 10px; }
.prose h3 { font-size: 21px; font-weight: 800; margin: 22px 0 6px; }
.prose p, .prose li { color: #ddd6f3; }
.prose ul { padding-left: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 17px; color: #2b0c1e; background: var(--grad); border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; text-decoration: none; }
.field { width: 100%; background: rgba(20, 13, 41, .7); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: inherit; font-size: 17px; padding: 13px 16px; }
.field:focus { border-color: var(--cyan); outline: none; }
.signup { display: flex; gap: 8px; margin-top: 12px; }
.signup .field { flex: 1; }
.form-msg { margin: 10px 0 0; color: var(--cyan); font-weight: 600; min-height: 1em; }

/* Map */
.map-card { margin: 0 0 10px; background: #12204f; position: relative; overflow: hidden; }
.map-card svg { display: block; width: 100%; height: auto; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 4px; }
.map-filters .chip { font-size: 15px; padding: 8px 14px; }
.chip .soon { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--orange); }
.region { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; }
.region i { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 10px currentColor; }

/* Merch */
.merch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.merch div { aspect-ratio: 1; border-radius: 18px; background: radial-gradient(120% 120% at 30% 20%, #3d2f7a, #231a49); display: grid; place-items: center; text-align: center; font-weight: 700; color: var(--muted); }
.merch span { display: block; font-size: 40px; }

/* ---------- Settings sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(8, 4, 20, .6); }
.sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: #20173f; border-radius: 26px 26px 0 0; padding: 8px 0 28px; max-height: 88vh; overflow-y: auto; }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: #574c88; margin: 6px auto 4px; }
.sheet .sec-head { padding-top: 14px; }
.sheet .sec-head h2 { font-size: 38px; }
.setting { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.setting .si { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 22px; }
.setting strong { display: block; font-size: 18px; }
.setting small { color: var(--muted); font-size: 15px; }
.switch { position: relative; width: 60px; height: 34px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #3a3163; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::after { transform: translateX(26px); }
.switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.size-row { display: flex; align-items: center; gap: 14px; padding: 8px 18px 14px; }
.size-row input { flex: 1; accent-color: #ee5d9b; height: 30px; }
.size-row .face { width: 26px; height: 26px; flex-shrink: 0; }
.size-row .face.big { width: 46px; height: 46px; }
.sheet-close { display: block; margin: 18px auto 0; }

/* ---------- Footer ---------- */
.foot { max-width: var(--col); margin: 0 auto; padding: 30px 18px 130px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot p { margin: 0; max-width: 70ch; }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: space-around;
  background: rgba(32, 23, 63, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(160, 130, 255, .35); border-radius: 30px; padding: 6px; max-width: 560px; margin: 0 auto; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 24px; color: #fff; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #ff8ec4; }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .foot { padding-bottom: 50px; }
  .list { gap: 12px; padding: 0 12px; }
  .cheat, .panel, .map-card { border-radius: 20px; }
  .panel, .map-card { margin-left: 12px; margin-right: 12px; }
}
@media (max-width: 899px) {
  .desk-tabs { display: none; }
  .top { justify-content: center; padding-top: 12px; }
}
@media (max-width: 480px) {
  :root { --k: 40px; }
  .cheat h3 { font-size: 22px; }
  .sec-head h2 { font-size: 40px; }
  .seq { gap: 9px 10px; }
  .signup { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .seq li, .chip, .switch span, .switch span::after { transition: none; }
}
.seq li.sh { display: flex; align-items: center; justify-content: center; }
.seq li.sh .pill { min-width: calc(var(--k) * 1.25); }
.sticky { max-width: none; padding-left: max(16px, calc((100vw - var(--col)) / 2 + 16px)); padding-right: max(16px, calc((100vw - var(--col)) / 2 + 16px)); }
.chips { margin-left: 0; margin-right: 0; padding: 0; }
@media (max-width: 899px) { .chips { margin: 12px -16px 0; padding: 0 16px; } }
