:root {
  --xp-face: #ece9d8;
  --xp-face-dk: #d4d0c8;
  --xp-select: #0a246a;
  --xp-text: #000;
  --header: #0a246a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--xp-face);
  color: var(--xp-text);
  font: 13px/1.5 Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
}

a { color: #003399; }
a:visited { color: #551a8b; }

.seo-bar {
  background: linear-gradient(to bottom, #0a246a 0%, #245edb 45%, #3a6ea5 100%);
  color: #fff;
  padding: 8px 16px;
}

.seo-bar a {
  color: #fff;
  text-decoration: none;
}

.seo-brand {
  font: bold 14px Tahoma, sans-serif;
  letter-spacing: 0.04em;
}

.seo-tag {
  margin-left: 8px;
  opacity: 0.85;
  font-size: 11px;
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
  font-size: 12px;
}

.seo-nav a { text-decoration: underline; }

.seo-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.seo-wrap h1 {
  margin: 0 0 12px;
  font: bold 22px/1.25 Tahoma, sans-serif;
}

.seo-wrap h2 {
  margin: 22px 0 8px;
  font: bold 16px/1.3 Tahoma, sans-serif;
}

.seo-lead, .seo-wrap p {
  margin: 0 0 10px;
}

.seo-meta {
  color: #404040;
  font-size: 12px;
  margin: 0 0 14px;
}

.seo-game {
  margin: 18px 0 28px;
  padding: 12px 12px 14px;
  background: #fff;
  border: 1px solid #b8b4a4;
  box-shadow: 1px 1px 0 #808080;
}

.seo-game h2 { margin-top: 0; }

.sheet-note {
  margin: 0 0 10px;
  color: #333;
  white-space: pre-wrap;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cheat-table th,
.cheat-table td {
  text-align: left;
  vertical-align: top;
  padding: 3px 8px 3px 4px;
  border-bottom: 1px solid #e6e2d4;
}

.cheat-table th {
  color: #333;
  font: bold 11px Tahoma, sans-serif;
  border-bottom: 1px solid #b8b4a4;
  background: #f6f3e8;
}

.cheat-table col.code { width: 38%; }

.cheat-table .code-cell {
  font: 12px/1.35 "Lucida Console", Consolas, monospace;
  color: #111;
  word-break: break-word;
}

.cheat-table .effect-cell {
  color: #222;
  word-break: break-word;
}

.sheet-pre {
  margin: 0;
  white-space: pre-wrap;
  font: 12px/1.4 Tahoma, sans-serif;
}

.seo-open {
  margin: 12px 0 0;
  font-size: 12px;
}

.seo-list {
  margin: 8px 0 16px;
  padding-left: 18px;
}

.seo-foot {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 16px 28px;
  color: #404040;
  font-size: 12px;
  border-top: 1px solid #b8b4a4;
}

.seo-foot h2 {
  margin: 0 0 8px;
  font: bold 13px Tahoma, sans-serif;
  color: #000;
}

@media (max-width: 640px) {
  .cheat-table col.code { width: 46%; }
  .seo-wrap h1 { font-size: 18px; }
}
