/* The strategy section's page, in its games' own look: dark chrome round a lit
   field map, amber for what you can do. System fonts only, as the security
   policy loads no web fonts. */
:root {
  --chrome: #1d2226;
  --panel: #272d32;
  --raise: #323a40;
  --line: #46505a;
  --ink: #eef1ec;
  --quiet: #b3bcc2;
  --amber: #f2b134;
  --red: #d4492f;
  --head: "Avenir Next Condensed", "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--chrome);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

main {
  max-width: 620px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) max(16px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 28px) max(16px, env(safe-area-inset-left));
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  margin: 0 0 8px;
  font-size: 40px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

h3 {
  margin: 18px 0 6px;
  font-size: 20px;
}

.lead {
  margin: 0 0 24px;
  color: var(--quiet);
}

.note {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 2px solid var(--amber);
  border-radius: 12px;
  background: var(--panel);
  font-weight: 600;
}

.games {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each game is one card: a picture of it being played, its Home Screen icon and
   name, and how it plays. The whole card opens the game. */
.game {
  display: grid;
  gap: 10px;
  padding: 12px 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

a.game:hover,
a.game:focus-visible {
  border-color: var(--amber);
  outline: none;
}

.picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  border-radius: 8px;
}

.name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--head);
  font-size: 26px;
  letter-spacing: 0.03em;
}

.name img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.what {
  color: var(--quiet);
}

.badge {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: #1d1a10;
  font-weight: 700;
  font-size: 15px;
}

/* A game's guide, under its card. Padding on the inline link makes its target 44
   pixels tall or more without spreading the lines, and the margin keeps that target
   clear of the card above. */
.guide {
  margin: 12px 4px 0;
  color: var(--quiet);
}

.guide a {
  padding: 12px 0;
  color: var(--amber);
  font-weight: 600;
}

.later {
  margin: 18px 0 32px;
  color: var(--quiet);
}

.how-to {
  padding: 18px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.how-to p,
.how-to ol {
  margin: 0 0 10px;
}

.how-to ol {
  padding-left: 1.3em;
}

.glyph {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
}
