/* PJB Devlab website: its own neutral studio look (clean light page, indigo accent),
   not tied to any one game. Each game keeps its own icon only. */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f1f1f7;
  --line: #e3e3ee;
  --text: #16161f;
  --muted: #555566;
  --faint: #8a8a9a;
  --accent: #5b5bf6;
  --accent-2: #8b5cf6;
  --accent-ink: #ffffff;
  --accent-soft: #ececff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 6px 20px rgba(20, 20, 40, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); }
a:hover { color: #4040d8; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-head { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.2px; }
.brand-name span { color: var(--accent); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.08; margin: 0 0 14px; font-weight: 800; letter-spacing: -1px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4646e6; color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: #c9c9da; background: var(--surface-2); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* sections */
section { padding: 34px 0; }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 22px; }

/* game cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.card-top { display: flex; gap: 14px; align-items: center; }
.icon { width: 64px; height: 64px; border-radius: 15px; flex: none; background: var(--surface-2); overflow: hidden; }
.icon.big { width: 112px; height: 112px; border-radius: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.card .sub, .test-game .sub { color: var(--faint); font-size: 14px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }
.card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.card .actions .btn { white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 2px 10px; border-radius: 999px; margin-top: 4px;
}
.badge-live { background: #e3f6ea; color: #1d7a44; }
.badge-testing { background: var(--accent-soft); color: #4040c8; }
.badge-soon { background: var(--surface-2); color: var(--muted); }
.empty {
  background: var(--surface); border: 1px dashed #cfcfde; border-radius: var(--radius);
  padding: 22px; color: var(--muted); text-align: center;
}

/* test steps */
.test-game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; scroll-margin-top: 80px; box-shadow: var(--shadow); }
.test-game h3 { margin: 0; font-size: 21px; font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 14px; }
.num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800;
}
.steps h4 { margin: 3px 0 4px; font-size: 17px; }
.steps p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.note { color: var(--faint); font-size: 14px; margin: 14px 0 0; }

/* game page */
.game-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 44px 0 10px; }
.game-hero h1 { margin: 0; font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
.game-hero .sub { color: var(--muted); font-size: 18px; font-weight: 600; }
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); }
.features strong { color: var(--text); display: block; }

/* policy pages */
.doc { max-width: 760px; padding-top: 34px; padding-bottom: 40px; }
.doc h1 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 4px; }
.doc h2 { font-size: 20px; margin: 30px 0 8px; color: var(--text); }
.doc p, .doc li { color: #33333f; }
.doc .eff { color: var(--faint); margin: 0 0 18px; }
.summary { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 18px; margin: 18px 0; }
.summary ul { margin: 6px 0; padding-left: 20px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 30px; }
.site-foot .wrap { padding-top: 22px; padding-bottom: 26px; display: flex; gap: 16px 28px; flex-wrap: wrap; justify-content: space-between; color: var(--faint); font-size: 14px; }
.site-foot a { color: var(--muted); }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .hero { padding-top: 42px; }
  .hero p { font-size: 16px; }
  .btn { width: 100%; }
  .card .actions .btn { width: auto; flex: 1; }
  .site-head { position: static; }
  .site-head .wrap { justify-content: center; }
}

/* Test Team page */
.team-head { margin: 26px 0 14px; font-size: 22px; }
.test-blurb { color: var(--muted); margin: 12px 0 0; }
