:root {
  --bg: #14061f;
  --bg-2: #1d0b2e;
  --surface: #22103a;
  --surface-2: #2c1649;
  --line: #3d2461;
  --text: #f6eefc;
  --muted: #b3a3c9;
  --pink: #ff4fa3;
  --orange: #ff9a3c;
  --cyan: #3de6e0;
  --green: #4be38f;
  --radius: 14px;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Sunset glow */
.sun {
  position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(255, 79, 163, .38), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(255, 154, 60, .22), transparent 70%),
    radial-gradient(40% 40% at 10% 30%, rgba(61, 230, 224, .12), transparent 70%);
}

.top, main, footer { width: min(1120px, 100% - 32px); margin-inline: auto; }

.top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 22px 0 10px; }

h2 { font: 400 clamp(28px, 5vw, 42px)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 16px; }
section { scroll-margin-top: 16px; }

/* Controls */
.browser { padding: 24px 0 56px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 260px; }
.search input {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 16px; /* 16px stops iOS zoom on focus */
}
.search input::placeholder { color: #8d7ba8; }
.search input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 163, .25); }

.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 14px var(--font-body); padding: 0 14px; height: 36px; border-radius: 9px;
  transition: background .15s, color .15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.seg button[aria-checked="true"] { background: linear-gradient(135deg, var(--pink), var(--orange)); color: #1a0710; }
@media (hover: hover) { .seg button[aria-checked="false"]:hover { color: var(--text); background: var(--surface-2); } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; appearance: none; cursor: pointer; font: 600 13.5px var(--font-body); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  transition: border-color .15s, color .15s, background .15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--cyan); background: rgba(61, 230, 224, .12); }
@media (hover: hover) { .chip:hover { color: var(--text); border-color: var(--muted); } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.card.is-verified { border-color: rgba(75, 227, 143, .55); box-shadow: 0 0 0 1px rgba(75, 227, 143, .15), 0 10px 30px -12px rgba(75, 227, 143, .35); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.wait { color: var(--muted); background: rgba(179, 163, 201, .12); }
.badge.ok { color: #06250f; background: var(--green); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.desc { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.pending { margin: auto 0 0; color: #8d7ba8; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }

.card.is-reported { border-color: rgba(61, 230, 224, .4); }
.count { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.keys { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 10px; }
kbd {
  width: 32px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  background: #12051d; border: 1px solid var(--line); border-bottom-width: 3px;
  color: var(--cyan); font: 700 18px/1 var(--font-body);
}
.unlock { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.unlock b { color: var(--text); }
.pending { margin: 0; }
.card .pending { margin-top: 2px; border-top: 0; padding-top: 0; }
.meta { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

footer { padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: #8d7ba8; font-size: 13px; }
footer p { margin: 0; max-width: 70ch; }

@media (max-width: 720px) {
  .seg { flex: 1 1 auto; }
  .seg button { flex: 1; }
}
.card h3 .emoji { margin-right: 8px; }

/* Category colors (sunset palette; green stays reserved for the Verified badge) */
[data-cat="player"]      { --c: #ff4fa3; }
[data-cat="combat"]      { --c: #ff9a3c; }
[data-cat="vehicles"]    { --c: #6ea8ff; }
[data-cat="environment"] { --c: #ffd23f; }
[data-cat="filters"]     { --c: #b48aff; }

.cat { color: var(--c, var(--cyan)); }
.card[data-cat] { border-top: 3px solid var(--c); }

.chip { display: inline-flex; align-items: center; }
.chip[data-cat]:not([data-cat="all"])::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 7px;
}
.chip[aria-pressed="true"] {
  border-color: var(--c, var(--cyan));
  background: color-mix(in srgb, var(--c, var(--cyan)) 16%, transparent);
}

.brand { display: inline-flex; }
.brand img { display: block; height: 44px; width: auto; }
.tagline { margin: -4px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .08em; }

/* Tappable cards */
.card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--cyan); outline-offset: 2px; }
.more { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--c, var(--cyan)); }
@media (hover: hover) {
  .card { transition: transform .15s, box-shadow .15s; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px var(--c, var(--cyan)); }
}
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* Cheat detail pages */
.page { width: min(760px, 100% - 32px); margin: 0 auto; padding: 4px 0 40px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 6px 0 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.cat-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--cyan)); }
.page h1 { font: 400 clamp(32px, 7vw, 54px)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 14px; }
.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--text); margin: 0 0 18px; max-width: 60ch; }
.page .keys { margin: 4px 0 22px; gap: 6px; }
.page .keys kbd { width: 38px; height: 42px; font-size: 22px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 0 0 8px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 15px; }
.prose h2 { font: 400 clamp(22px, 4vw, 28px)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin: 34px 0 10px; }
.prose h3 { font-size: 16px; margin: 18px 0 4px; }
.prose p { color: var(--muted); margin: 0 0 10px; }
.prose .steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.prose .steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 52px; color: var(--muted); }
.prose .steps li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--orange)); color: #1a0710; font-weight: 800; font-size: 13px; }
.prose .steps b { color: var(--text); }
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.related a:hover { border-color: var(--c, var(--cyan)); }
.back { margin-top: 26px; }
.back a { color: var(--text); font-weight: 600; }
.note { font-size: 13px; color: #8d7ba8; margin-top: 18px; }
.note a { color: var(--muted); }
