/* Encore Game Launcher website. Dark by default, like the app; light when the visitor's
   system asks for it. */
:root {
  color-scheme: dark light;
  --bg: #101014;
  --surface: #1a1a20;
  --border: #2a2a32;
  --text: #ececf1;
  --muted: #a3a3ae;
  --link: #8fb4ff;
  --accent: #e8b04b;
  --accent-text: #1a1206;
  --radius: 14px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f8;
    --surface: #ffffff;
    --border: #e1e1e8;
    --text: #18181d;
    --muted: #5d5d68;
    --link: #2459d6;
    --accent: #c98a12;
    --accent-text: #ffffff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { margin-left: auto; display: flex; gap: 18px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Home */
.hero { text-align: center; padding: 64px 0 40px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; }
.hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.15; margin: 18px 0 10px; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 28px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.note { color: var(--muted); font-size: .88rem; margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0 56px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h2 { font-size: 1.05rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Text pages (privacy, support) */
.doc { padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: 1.9rem; margin: 0 0 4px; }
.doc h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.doc h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: .3rem 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: .5rem 0 1rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p, details ul { margin: .6rem 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; padding: 24px 0 40px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: .3rem 0; }
