:root {
  color-scheme: light;
  font-family: "Courier New", Courier, monospace;
  color: #252723;
  background: #fafaf7;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.game { width: min(100% - 48px, 790px); margin: 48px auto 32px; }
.header { border-bottom: 1px solid #c9ccc4; padding-bottom: 15px; margin-bottom: 28px; }
h1 { font-size: 24px; letter-spacing: .2em; margin: 0; font-weight: 700; }
h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.columns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 42px; }
.column { flex: 1 1 300px; min-width: 0; }
section { border-bottom: 1px solid #dedfd8; padding-bottom: 23px; margin-bottom: 23px; }
p { margin: 0 0 10px; }
button {
  font: inherit;
  color: inherit;
  background: #f1f2ec;
  border: 1px solid #a5a99e;
  border-radius: 2px;
  padding: 7px 11px;
  min-height: 36px;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover:not(:disabled) { background: #e6e8df; border-color: #676d5f; }
button:active:not(:disabled) { background: #dcded4; }
button:focus-visible { outline: 2px solid #343d2b; outline-offset: 3px; }
button:disabled { color: #777c70; background: transparent; border-color: #d5d8ce; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.resources { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 0; font-variant-numeric: tabular-nums; }
.resources dt { font-weight: 400; }
.resources dd { margin: 0; text-align: right; white-space: nowrap; }
.rate { color: #6b7064; font-size: 12px; margin-left: 12px; display: inline-block; min-width: 75px; }
.items { display: grid; gap: 18px; }
.item button { width: 100%; text-align: left; }
.item .hint { margin: 5px 0 0; }
.purchased { display: block; padding: 7px 0; font-size: 14px; font-weight: 400; }
.muted, .hint { color: #6b7064; font-size: 12px; }
.hint { margin: 7px 0 0; }
.stat { font-variant-numeric: tabular-nums; }
.stat strong { font-weight: 400; }
.jobs { display: grid; gap: 8px; margin-top: 15px; }
.job { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.job-hint { flex-basis: 100%; margin: -3px 0 7px; }
.job-label { flex: 1; font-variant-numeric: tabular-nums; }
.job button { width: 36px; padding: 5px; font-size: 16px; }
.warning { color: #885323; font-size: 12px; margin: 13px 0 0; }
.feedback { min-height: 3em; font-size: 12px; color: #555d4e; margin: 0 0 20px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #dedfd8; padding-top: 14px; color: #6b7064; font-size: 11px; }
.text-button { border: 0; padding: 5px 0 5px 12px; background: none; text-decoration: underline; font-size: 11px; }
.text-button:hover:not(:disabled) { background: none; color: #252723; }
@media (max-width: 650px) {
  .game { width: calc(100% - 32px); max-width: 420px; margin-top: 26px; }
  .columns { gap: 0; }
  .column { flex-basis: 100%; }
  button { min-height: 44px; }
  .job button { width: 44px; }
}
