:root {
  --bg: #f7f4fb;
  --card: #ffffff;
  --text: #1d1530;
  --muted: #6b6280;
  --accent: #7b3fe4;
  --accent-2: #ff6b8b;
  --line: #e6e0f0;
  --ok: #1f9d55;
  --err: #d33a4a;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150f22;
    --card: #211936;
    --text: #f3eefc;
    --muted: #a99fc0;
    --accent: #b28bff;
    --accent-2: #ff8aa3;
    --line: #342a4d;
    --ok: #4cd98a;
    --err: #ff7383;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--text); letter-spacing: .2px; }
.brand span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav a { margin-left: 16px; text-decoration: none; color: var(--muted); font-weight: 600; }
nav a:first-child { margin-left: 0; }
nav a[aria-current="page"] { color: var(--text); }
main { padding: 36px 0 56px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 34px 0 8px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 16px 0;
}
.game { display: flex; gap: 16px; align-items: center; }
.game img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.game h3 { margin: 0 0 2px; }
.game p { margin: 0; color: var(--muted); }
.links { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
select, input, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 150px; resize: vertical; }
.hint { color: var(--muted); font-size: 14px; margin-top: 6px; }
button {
  margin-top: 20px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  cursor: pointer;
  width: 100%;
}
button:disabled { opacity: .55; cursor: default; }
.status { margin-top: 14px; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
footer.site { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }
