/* The site's plain pages (privacy and terms, 404): the game's dark look, readable on a phone.
   A stylesheet of its own because the site's CSP allows no inline styles. */
:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px 48px;
  background: #101114;
  color: #d6dbe4;
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 760px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  color: #fff;
  line-height: 1.25;
}

h1 {
  font-size: 28px;
  margin: 8px 0 4px;
}

h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid #2a2e36;
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

p,
li {
  margin: 0 0 10px;
}

ul {
  padding-left: 22px;
}

a {
  color: #8fd3ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: #fff;
}

.lead {
  color: #a9b2c0;
  font-size: 15px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 16px 0 8px;
  list-style: none;
}

.lang {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 3px double #2a2e36;
}

.fill {
  background: #2b2416;
  color: #ffd98a;
  padding: 0 4px;
  border-radius: 3px;
}

.note {
  padding: 12px 14px;
  border-left: 3px solid #ffd98a;
  background: #1a1b20;
  color: #cfd5de;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 8px 0 14px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 7px 8px;
  border-bottom: 1px solid #2a2e36;
}

th {
  color: #fff;
  font-weight: 600;
}

.back {
  display: inline-block;
  margin-top: 36px;
  padding: 10px 16px;
  border: 1px solid #3a3f49;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.back:hover,
.back:focus-visible {
  border-color: #8fd3ff;
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 24px;
  }

  table {
    font-size: 13.5px;
  }

  th,
  td {
    padding: 6px 4px;
  }
}
