/*
 * The plain pages (privacy, terms): no WebGL, no scripts, no third-party fonts. The game menu's
 * plum and pink, with Pally served from this site.
 */
@font-face {
  font-family: "Pally";
  src: url("/fonts/Pally-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pally";
  src: url("/fonts/Pally-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #1d1721;
  --card: #251f2b;
  --line: #3a3142;
  --ink: #ffffff;
  --ink-soft: #cfc6d6;
  --accent: #ffceca;
  --ok: #d5ff95;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.65 "Pally",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  overflow-wrap: break-word;
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:focus-visible {
  outline: 3px solid var(--ok);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 12px;
  background: var(--card);
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

header,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: 18px;
}
.home {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
header ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
header nav a {
  display: inline-block;
  padding: 6px 14px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
header nav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

main {
  padding-bottom: 48px;
}
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 5vw, 44px);
}
h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15;
  margin: 0 0 6px;
}
.updated {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
}
h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 36px 0 8px;
  color: var(--accent);
}
p,
ul {
  margin: 0 0 14px;
}
li {
  margin: 4px 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15.5px;
  line-height: 1.5;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
code {
  font-size: 0.88em;
  background: var(--bg);
  border-radius: 5px;
  padding: 1px 5px;
}

footer {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
