/* Flame Multiplayer Games: the look of the site's reading pages (About us, the Privacy policy, each game's How to
   play page and its guides). The home page and Contact us keep their own styles in the page; the colours here are
   theirs. */
:root {
  --bg: #0e0c0c;
  --surface: #1a1615;
  --surface-hover: #221c1a;
  --line: #322a27;
  --text: #f5efe9;
  --muted: #aaa098;
  --accent: #ff7a1a;
  --accent-bright: #ffb12e;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 50% -140px, rgba(255, 110, 24, 0.22), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent-bright); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

.top .logo { display: block; width: min(220px, 52vw); height: auto; }

.back {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.back:hover { color: var(--text); }

main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.lead {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

h2 {
  margin: 40px 0 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

p, ul, ol { margin: 0 0 14px; }

ul, ol { padding-left: 1.3em; }

li + li { margin-top: 6px; }

strong { color: #fff; }

.updated { color: var(--muted); font-size: 14px; }

/* A game's picture, with its Play button and what it's for underneath. */
.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  object-fit: cover;
}

/* A game's clip, and its screenshots in a row under it. */
.clip {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
}

.shots li { margin: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.shots a:hover img, .shots a:focus-visible img { border-color: var(--accent); }

/* A guide's map or picture, whole rather than cut to 16:9, with what it shows underneath. */
.figure { margin: 0; }

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.figure figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Where a guide sits: the game, then the guide's section. */
.crumbs { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

.crumbs a { color: inherit; }

.start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 18px 0 8px;
}

.play {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  color: #1b0d02;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.play:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  margin: 0;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

/* Tables scroll on their own on a narrow screen, never the page. */
.table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child > * { border-bottom: 0; }

thead th { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

tbody th { font-weight: 700; white-space: nowrap; }

kbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg);
  font: inherit;
  font-size: 0.88em;
  line-height: 1.5;
  white-space: nowrap;
}

.card {
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card > :last-child { margin-bottom: 0; }

.card h3 { margin-top: 0; }

/* The list of places to play (arenas, tracks, courts), two to a row where there's room. */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.places li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}

.places strong { display: block; margin-bottom: 2px; color: var(--text); }

/* The other games, at the foot of a game's page and on About us. */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.games li { margin: 0; }

.games a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.games a:hover, .games a:focus-visible { border-color: var(--accent); background: var(--surface-hover); outline: none; }

.games img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

.games span { display: block; padding: 10px 14px 12px; }

.games strong { display: block; font-style: italic; text-transform: uppercase; }

.games small { color: var(--muted); font-size: 14px; }

footer {
  padding: 20px 16px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer a { color: inherit; }

@media (max-width: 560px) {
  .lead { font-size: 16px; }
  h2 { font-size: 21px; }
  .card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .games a { transition: none; }
}
