.cheats-home {
  --cheat-muted: #bcb4c3;
  --cheat-accent: #ff4f9a;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 28px 68px;
}

.cheat-hero {
  position: relative;
  min-height: 380px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, #151018 7%, #151018e8 34%, #15101850 72%),
    linear-gradient(0deg, #151018 3%, transparent 70%),
    url('/assets/gta-vi-cheats-vice-city.webp') 65% 46% / cover;
  border: 1px solid #3f3041;
  margin: 24px 0;
}

.cheat-hero-copy { padding: clamp(24px, 5vw, 66px); }
.cheat-kicker {
  color: var(--mint);
  font-weight: 800;
  letter-spacing: .11em;
  font-size: .78rem;
  margin: 0 0 16px;
}
.cheat-kicker::before { content: ''; display: block; width: 45px; height: 2px; margin-bottom: 13px; background: var(--mint); }
.cheat-hero h1 {
  color: var(--cream);
  font: italic 900 clamp(3rem, 8vw, 7.8rem)/.82 'Barlow Condensed', Barlow, Arial, sans-serif;
  letter-spacing: -.025em;
  margin: 0;
}
.cheat-hero h1 span { color: var(--cheat-accent); display: block; }
.cheat-intro { color: #ebe4ee; max-width: 37ch; font-size: 1.05rem; margin: 21px 0 18px; }
.cheat-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 20px; }
.cheat-actions a, .cheat-poster-link { font-weight: 750; color: var(--mint); }
.cheat-actions .cheat-primary { color: #18121b; background: var(--mint); padding: 11px 16px; }
.cheat-actions a:hover, .cheat-poster-link:hover { text-decoration: underline; }

.cheat-how { background: #1b1721; border: 1px solid #433449; padding: 22px 26px; }
.cheat-how-heading, .cheat-directory-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.cheat-how h2, .cheat-directory h2 { margin: 0; }
.cheat-how ol { margin: 14px 0; padding-left: 20px; line-height: 1.55; }
.cheat-how li { padding-left: 2px; }
.cheat-save { background: #301c2b; color: #ffd9e8; border-left: 3px solid var(--cheat-accent); padding: 12px 14px; margin: 16px 0 0; }
.cheat-platform { display: inline-flex; gap: 3px; background: #111018; padding: 3px; border: 1px solid #4e4054; }
.cheat-platform button, .cheat-copy { cursor: pointer; border: 1px solid transparent; padding: 7px 13px; background: transparent; color: var(--cream); }
.cheat-platform [aria-pressed="true"] { background: var(--mint); color: #151018; font-weight: 800; }
.cheats-home :focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.cheat-directory { margin-top: 34px; }
.cheat-directory-heading > h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.cheat-controls {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.55fr) auto;
  align-items: end; gap: 14px; margin-top: 14px;
  padding: 14px; background: #1c1722; border: 1px solid #3d3444;
}
.cheat-controls label { display: grid; gap: 5px; font-weight: 750; min-width: 0; }
.cheat-controls input[type="search"], .cheat-controls select {
  width: 100%; min-height: 43px; padding: 8px 11px;
  color: var(--cream); background: #110f15; border: 1px solid #56455d;
}
.cheat-controls .cheat-toggle { display: flex; align-items: center; gap: 8px; min-height: 43px; }
.cheat-toggle input { accent-color: var(--mint); width: 17px; height: 17px; }
.cheat-result { color: var(--cheat-muted); margin: 15px 0 10px; }
.cheat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.cheat-card {
  min-width: 0; display: flex; flex-direction: column; align-items: start;
  padding: 17px; background: #1a1620; border: 1px solid #443649;
}
.cheat-card h2 { margin: 0; font-size: 1.35rem; line-height: 1.13; }
.cheat-category { color: var(--mint); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin: 0 0 7px; }
.cheat-condition { color: #d5c9d9; line-height: 1.45; margin: 10px 0 15px; }
.cheat-condition strong { color: var(--cream); }
.cheat-input { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: auto; width: 100%; }
.cheat-arrows { display: flex; flex-wrap: wrap; gap: 4px; font-family: Arial, sans-serif; }
.cheat-arrows span {
  display: grid; place-items: center; inline-size: 23px; min-block-size: 25px;
  border: 1px solid #695166; background: #271e2d; border-radius: 4px;
  color: #ffe5f1; font-size: 1rem; font-weight: 800;
}
.cheat-copy { border-color: #605165; padding: 3px 8px; margin-left: auto; }
.cheat-copy:hover { border-color: var(--mint); color: var(--mint); }
.cheat-no-code, .cheat-evidence { color: var(--cheat-muted); font-size: .85rem; margin: 10px 0 0; }
.cheat-no-code { margin-top: auto; }
.cheat-evidence[data-evidence="crosschecked"] { color: var(--mint); }
.cheat-copy-status {
  position: fixed; inset: auto 16px 18px auto; z-index: 12;
  color: #151018; background: var(--mint); padding: 12px 16px;
  max-width: calc(100vw - 32px); font-weight: 750;
}
.cheat-empty { border: 1px solid #443649; padding: 18px; }
.cheats-home [hidden] { display: none !important; }

@media (max-width: 980px) {
  .cheat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cheat-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cheat-controls .cheat-toggle { grid-column: 1/-1; }
}
@media (max-width: 580px) {
  .cheats-home { padding: 0 13px 44px; }
  .cheat-hero { min-height: 325px; margin: 14px 0; }
  .cheat-how { padding: 16px; }
  .cheat-grid, .cheat-controls { grid-template-columns: minmax(0,1fr); }
  .cheat-controls .cheat-toggle { min-height: 34px; }
}
