/* The site's look, shared by every page: the game's colors, on a dark table. */
:root {
  --bg: #10151c;
  --panel: #14263b;
  --panel-2: #1b3350;
  --text: #f1f5f9;
  --muted: #a9b8c9;
  --accent: #ffd166;
  --accent-ink: #10151c;
  --link: #8fc7ff;
  --radius: 16px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a {
  color: var(--link);
}
a:hover {
  color: var(--accent);
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h1 {
  font-size: clamp(32px, 6vw, 52px);
  margin: 0.4em 0 0.3em;
}
h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 1.6em 0 0.5em;
}
h3 {
  font-size: 20px;
  margin: 1.4em 0 0.3em;
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 2;
}
.top {
  border-bottom: 1px solid var(--panel-2);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.logo {
  width: auto;
  height: 80px;
  display: block;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.top nav a[aria-current='page'],
.top nav a:hover {
  color: var(--text);
}
.top nav a.play,
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  text-decoration: none;
}
.button {
  padding: 12px 24px;
  font-size: 18px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.button.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--panel-2);
}
.top nav a.play:hover,
.button:hover {
  filter: brightness(1.08);
  color: var(--accent-ink);
}
.button.ghost:hover {
  color: var(--text);
}
main {
  padding-bottom: 48px;
}
.lead {
  font-size: clamp(19px, 2.6vw, 22px);
  color: var(--muted);
  max-width: 44em;
}
.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.grid .card h3 {
  margin-top: 0;
}
.small {
  font-size: 15px;
  color: var(--muted);
}
.bottom {
  border-top: 1px solid var(--panel-2);
  color: var(--muted);
  font-size: 15px;
}
.foot {
  padding-top: 20px;
  padding-bottom: 28px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.prose {
  max-width: 46em;
}
.prose li {
  margin: 0.3em 0;
}
label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--panel-2);
  border-radius: 10px;
  padding: 10px 12px;
}
textarea {
  min-height: 160px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus,
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.notice {
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  background: var(--panel);
  border-radius: 8px;
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .card {
    padding: 16px;
  }
  .logo {
    height: 68px;
  }
}
