:root {
  color-scheme: dark;
  font: 1rem/1.55 system-ui, sans-serif;
  color: #f5f0dc;
  background: #111b17;
  --surface: #1b2c24;
  --accent: #f3cf79;
  --border: #496052;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  padding: 1rem max(1rem, calc((100% - 65rem) / 2));
  border-bottom: 1px solid var(--border);
}
a { color: var(--accent); }
.brand { font-weight: 750; }
main { max-width: 65rem; padding: 2rem 1rem 3rem; margin: auto; }
h1, h2 { line-height: 1.08; margin: 0 0 .7em; }
h1 { font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 4.1rem); }
p { max-width: 65ch; }
.eyebrow {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero, .panel {
  margin: 1rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: var(--surface);
}
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.links, .toolbar, .touch { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.links { gap: 1rem 1.5rem; }
button, .button {
  display: inline-block;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  color: inherit;
  background: #24392d;
  border: 1px solid var(--border);
  border-radius: .35rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
button:disabled { cursor: default; opacity: .5; }
.primary { color: #201706; background: var(--accent); font-weight: 750; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen {
  position: relative;
  width: min(100%, 46rem);
  aspect-ratio: 4 / 3;
  background: #050706;
  border: 1px solid var(--border);
}
#game, #boot { position: absolute; inset: 0; }
#boot { display: grid; place-items: center; }
#boot[hidden] { display: none; }
#status { min-height: 1.55em; }
.touch button { min-width: 2.75rem; touch-action: none; user-select: none; }
summary { cursor: pointer; font-weight: 700; }
code { overflow-wrap: anywhere; }
