/* =============================================================
   Shared landing-page theme for gaming-tool download sites.
   One file, reused across every niche folder.
   Per-niche accent color: set <body class="theme-roblox"> etc.
   ============================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --card: #ffffff;
  --line: #e2e7ef;
  --text: #141c2b;
  --muted: #56617a;
  --accent: #4f8cff;       /* default; overridden per niche */
  --accent-2: #7b5cff;
  --good: #12915f;
  --warn: #c77700;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(16,24,40,.08);
  --maxw: 900px;
}

/* Per-niche accents (keeps sites from looking identical) */
.theme-roblox   { --accent:#ff5b5b; --accent-2:#ff8a3d; }
.theme-freefire { --accent:#ff8a00; --accent-2:#ffcf33; }
.theme-gta      { --accent:#22c55e; --accent-2:#a3e635; }
.theme-mc       { --accent:#5dd39e; --accent-2:#38bdf8; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 0; }
p { color: var(--muted); }

/* ---------- Ad slots ---------- */
.ad {
  margin: 26px auto;
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #ffffff00, #ffffff00 10px, #f1f4f9 10px, #f1f4f9 20px);
  border: 1px dashed var(--line);
  border-radius: 10px;
  position: relative;
}
.ad::before {
  content: "Advertisement";
  position: absolute; top: 4px; left: 8px;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8a94a6;
}
.ad--anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  margin: 0; min-height: 60px; border-radius: 0;
  background: var(--bg-2); border-top: 1px solid var(--line);
}
.ad--anchor .ad-close {
  position: absolute; top: -22px; right: 8px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px 6px 0 0; padding: 2px 10px; cursor: pointer; font-size: 12px;
}

/* ---------- Header: centred logo, navigation row underneath ---------- */
header.site { background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead { display: flex; justify-content: center; padding: 16px 18px 6px; }
.brand { display: block; }
.brand .brand-logo { height: 56px; width: auto; display: block; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 28px; padding: 8px 18px 12px;
}
.nav a.link { color: var(--text); font-weight: 700; font-size: 1rem; }
.nav a.link:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 720px){
  .brand .brand-logo { height: 44px; }
  .nav { gap: 2px 16px; }
  .nav a.link { font-size: .9rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 800; font-size: 1.05rem;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn.small { padding: 9px 16px; font-size: .9rem; border-radius: 9px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 34px; text-align: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); margin-bottom: 16px;
}
.hero p.lead { font-size: 1.12rem; max-width: 640px; margin: 0 auto 26px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.meta-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.pill { font-size: .82rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.pill b { color: var(--good); }

/* ---------- Sections / cards ---------- */
section { padding: 40px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px){ .grid.cols-3 { grid-template-columns: 1fr; } .grid.cols-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card .ico {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  display: grid; place-items: center; font-size: 20px;
}
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; max-width: none; margin: 0 auto; }
.step { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step h3 { font-size: 1rem; margin-bottom: 2px; }
.step p { margin: 0; font-size: .92rem; }

/* Table */
table.info { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.info th, table.info td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.info th { color: var(--muted); width: 38%; font-weight: 600; }
table.info tr:last-child td, table.info tr:last-child th { border-bottom: none; }

/* FAQ */
.faq { max-width: none; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 14px; margin: 0; }

/* Trust / warning banner */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: color-mix(in srgb, var(--warn) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: 12px; padding: 16px 18px; max-width: 820px; margin: 0 auto;
}
.notice .ico { font-size: 22px; }
.notice p { margin: 0; color: var(--text); font-size: .92rem; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 34px 0 90px; margin-top: 20px; background: var(--bg-2); }
footer.site .cols { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); display: block; font-size: .9rem; margin: 4px 0; }
footer.site .legal { color: #6b7793; font-size: .82rem; margin-top: 22px; }

/* Interstitial / download modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,28,43,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  max-width: 460px; width: 100%; padding: 26px; text-align: center; box-shadow: var(--shadow);
}
.modal h3 { font-size: 1.3rem; }
.modal .ad { min-height: 250px; margin: 18px 0; }
.modal .close { background: none; border: none; color: var(--muted); float: right; font-size: 1.2rem; cursor: pointer; }
.count { font-weight: 800; color: var(--accent); }

/* ---- Article hero + author entity ---- */
.post-hero { margin: 18px 0 28px; }
.post-hero img {
  width: 100%; height: auto; aspect-ratio: 1200 / 630;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card);
}
.byline .author-link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.byline .author-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.author-card { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.author-avatar {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.5rem;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.author-posts { line-height: 1.9; }
@media (max-width: 520px) {
  .author-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}
