/* The landing pages under /play/ and the article pages (tools/seo-pages.mjs).
   The game's dark and gold, with the serif of the guide and legal pages. No web
   fonts, so the text shows at once. */
:root {
  --bg: #15171b; --panel: #1f2228; --line: #3a3628; --ink: #ece6d2; --soft: #b9b19a;
  --gold: #d4a83a; --gold-hi: #f0c75a; --good: #8fc56b; --bad: #e07a5f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
}
a { color: var(--gold-hi); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 800px; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.2; letter-spacing: .01em; }
h1 { font-size: clamp(28px, 5vw, 42px); margin: 6px 0 12px; }
h2 { font-size: 22px; color: var(--gold); margin: 0 0 12px; }
h2 a { color: inherit; text-decoration: none; }
h2 small { font-size: 14px; color: var(--soft); font-weight: normal; margin-left: 6px; }
h3 { font-size: 18px; margin: 0 0 4px; }
h3.sub { margin-top: 22px; color: var(--gold); font-size: 16px; }
.muted { color: var(--soft); font-size: 15px; }
.center { text-align: center; }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); background: #101215; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 56px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { font: 700 22px/1 Georgia, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a.play { background: var(--gold); color: #1b1608; padding: 6px 14px; border-radius: 3px; font-weight: 700; }
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 32px; font-size: 14px; color: var(--soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--soft); }

.crumbs { font-size: 14px; color: var(--soft); margin: 16px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--soft); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; margin: 8px 0 24px; }
.hero.solo { grid-template-columns: 1fr; }
.kicker { margin: 0; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.lede { font-size: 18px; color: var(--ink); }
.flag { border: 1px solid rgba(0, 0, 0, .7); border-radius: 2px; vertical-align: middle; flex: none; }
.flag.big { width: 54px; height: 36px; margin-right: 6px; vertical-align: -4px; }
.cta {
  display: inline-block; background: linear-gradient(#f0c75a, #c99a2e); color: #1b1608; font-weight: 700;
  padding: 14px 22px; border-radius: 4px; text-decoration: none; font-size: 18px; border: 1px solid #8a6a1e;
  box-shadow: 0 2px 0 #6b5216; margin: 8px 0;
}
.cta:hover { filter: brightness(1.08); }
.cta-note { font-size: 14px; color: var(--soft); margin: 4px 0 0; }
/* How a war goes: three numbered steps under the hero. */
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; margin: 0; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.steps li::before { content: counter(step); display: block; font: 700 26px/1 Georgia, serif; color: var(--gold); margin-bottom: 8px; }
.steps li b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.commander { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.commander img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.commander figcaption { padding: 12px 14px; font-size: 15px; }
.commander figcaption b { display: block; color: var(--gold); margin-bottom: 4px; }
.commander figcaption span { color: var(--soft); }

/* Cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin: 0 0 16px; }
.sig b { font-size: 20px; color: var(--gold-hi); }
.traits { list-style: none; margin: 0; padding: 0; }
.traits li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.traits li:last-child { border-bottom: 0; }
.fx { font-size: 14px; white-space: normal; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.flaw b { color: var(--bad); }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; }
.stats li { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stats li b { font-size: 18px; }
.stats li.good b { color: var(--good); }
.stats li.bad b { color: var(--bad); }
.stats .bar { grid-column: 1 / -1; height: 4px; background: #2c2f36; border-radius: 2px; display: block; margin-top: 4px; }
.stats .bar i { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
.stats small { grid-column: 1 / -1; color: var(--soft); font-size: 13px; }

.units { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.unit { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.unit img { width: 120px; height: 120px; border-radius: 4px; border: 1px solid var(--line); background: #111; }
.unit p { margin: 4px 0; font-size: 15px; }
.mult span { display: inline-block; margin-right: 10px; font-size: 14px; }
.kit { width: 100%; border-collapse: collapse; font-size: 15px; }
.kit th, .kit td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kit th { color: var(--soft); font-weight: normal; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: #272a31; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); text-decoration: none; font-size: 15px; }
.chip:hover { border-color: var(--gold); }

.win p { font-size: 17px; }
.more { margin: 20px 0; }

/* Country lists on the hubs */
.search { margin: 0 0 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search label { color: var(--gold); }
.search input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 3px; border: 1px solid var(--line); background: #0f1114; color: var(--ink); }
.nations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.nations a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; color: var(--ink); }
.nations a:hover { border-color: var(--gold); background: #272a31; }
.nations span { display: flex; flex-direction: column; min-width: 0; }
.nations b { font-weight: normal; }
.nations small { color: var(--soft); font-size: 13px; line-height: 1.3; }

/* The article */
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--gold); width: 28%; font-weight: normal; }
.prose li { margin: 4px 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .commander { display: grid; grid-template-columns: 110px 1fr; }
  .commander img { height: 100%; }
  .grid, .units { grid-template-columns: 1fr; }
  .unit { grid-template-columns: 88px 1fr; }
  .unit img { width: 88px; height: 88px; }
  .card { padding: 16px; }
  .cta { display: block; text-align: center; }
  .kit th:nth-child(2), .kit td:nth-child(2) { display: none; }
  .prose th { width: 34%; }
}

/* A screen of the game inside an article. */
.shot { margin: 18px 0 22px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.shot figcaption { margin-top: 7px; font-size: 13px; text-align: center; opacity: .75; }
