/* druglord.co.za — the games' own palette: near-black, terminal green, gold. */
:root {
  --bg: #0b0f0b;
  --card: #131813;
  --card-2: #182018;
  --line: #1f3a1f;
  --text: #e6ede6;
  --muted: #a3b4a3;
  --green: #00dd2f;
  --green-dim: #00aa24;
  --gold: #fcce1c;
  --red: #ff5a52;
  --blue: #5aaaff;
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #6dff8a; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top { border-bottom: 1px solid var(--line); background: #070a07; position: sticky; top: 0; z-index: 5; }
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 16px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; font-size: 15px; }
.brand img { border-radius: 8px; }
.nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; column-gap: 2px; margin: 6px -10px 0; }
.nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 10px 8px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
@media (min-width: 900px) {
  .top-inner { flex-wrap: nowrap; padding: 0 16px; }
  .nav { order: 0; width: auto; margin: 0 0 0 auto; }
  .nav a { padding: 22px 10px 20px; }
  .top-play { margin-left: 8px; }
}
@media (max-width: 899px) { .top { position: static; } }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn:hover { border-color: var(--green-dim); color: #fff; }
.btn-play { background: var(--green); border-color: var(--green); color: #031; }
.btn-play:hover { background: #3bff62; color: #021; }
.top-play { padding: 8px 16px; font-size: 13px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 16px 40px; }
section { margin: 44px 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .55em; }
h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 900; letter-spacing: 1px; }
h2 { font-size: clamp(22px, 3.6vw, 30px); font-weight: 900; }
h3 { font-size: 19px; font-weight: 800; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 8px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: #cfdacf; max-width: 46em; }
.muted { color: var(--muted); }
.page-head { padding: 40px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; color: var(--gold); }
.updated { color: var(--muted); font-size: 14px; }

.hero { display: grid; gap: 28px; align-items: center; padding: 40px 0 10px; }
.hero h1 { color: var(--green); text-transform: uppercase; letter-spacing: 3px; }
.hero-shots { display: flex; gap: 12px; justify-content: center; }
.hero-shots img { width: 46%; max-width: 230px; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.hero-shots img:nth-child(2) { margin-top: 36px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr 1fr; padding-top: 56px; } }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 899px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { color: var(--green); text-transform: uppercase; letter-spacing: 1.5px; font-size: 16px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.gold h3 { color: var(--gold); }
.card-img { margin: -20px -20px 16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: #000; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-img.contain img { object-fit: contain; padding: 10px; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--green-dim); }
a.card .more { color: var(--green); font-weight: 700; font-size: 15px; }

.game { display: grid; gap: 18px; }
.game-head { display: flex; gap: 14px; align-items: center; }
.game-head img { width: 64px; height: 64px; border-radius: 14px; }
.game-head h3 { margin: 0; font-size: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0 0 14px; }
.facts li { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: #cfe; margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #021; font-weight: 900; display: grid; place-items: center; }
.steps strong { display: block; color: var(--green); }

.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.shots figure { flex: none; width: 210px; margin: 0; scroll-snap-align: start; }
@media (min-width: 900px) { .shots { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; } .shots figure { width: auto; } }
.shots img { border-radius: 16px; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.figure { margin: 22px 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--line); }

.note { border-left: 3px solid var(--gold); background: #17170c; padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; }
.note.green { border-left-color: var(--green); background: #0e180e; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #0f150f; color: var(--gold); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--green); font-weight: 900; }
details[open] summary::after { content: "–"; }
details[open] { padding-bottom: 6px; }

/* ── Changelog ──────────────────────────────────────────────────────────── */
.log { list-style: none; padding: 0; }
.log > li { border-left: 2px solid var(--line); padding: 0 0 22px 20px; position: relative; margin: 0; }
.log > li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.log h3 { margin-bottom: .2em; }
.log time { color: var(--muted); font-size: 14px; display: block; margin-bottom: .5em; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: #070a07; padding: 32px 16px 28px; }
.foot-cols { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 700px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
.foot h2 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.foot a { display: block; color: var(--muted); text-decoration: none; font-size: 15px; padding: 3px 0; }
.foot a:hover { color: var(--green); }
.fine { max-width: var(--wrap); margin: 22px auto 0; color: #7f907f; font-size: 13px; }
.fine + .fine { margin-top: 8px; }
.table-wrap.wide table { min-width: 680px; }
