:root { color-scheme: light; }
* { box-sizing: border-box; }
html { background: #d7e0d6; }
body {
  margin: 0;
  color: #1c2820;
  font: 17px/1.5 "Avenir Next", "Segoe UI", sans-serif;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #1d4e89; outline-offset: 3px; }
.wrap { width: min(980px, calc(100% - 32px)); margin: 0 auto; }
header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 12px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; font-size: 20px; }
nav a { color: #3e5348; text-decoration: none; margin-left: 16px; }
nav a[aria-current="page"] { color: #1c2820; }
.layout { display: grid; gap: 28px; align-items: start; padding-bottom: 20px; }
@media (min-width: 800px) {
  .layout { grid-template-columns: auto 1fr; }
}
.stage { background: #e7efe4; border-radius: 16px; padding: 16px; }
#board { display: grid; gap: 4px; }
.cell { aspect-ratio: 1; border-radius: 4px; background: #e7efe4; }
.cell.wall { background: #1e3a2f; }
.cell.goal { box-shadow: inset 0 0 0 3px #c46a2f; }
.cell.box { background: #c46a2f; }
.cell.player { background: #1d4e89; border-radius: 50%; }
.cell.box.goal { background: #8a3f14; box-shadow: inset 0 0 0 3px #f2e2cf; }
#status { margin: 12px 0 0; font-weight: 600; }
#note { min-height: 1.4em; margin: 4px 0 0; color: #1e3a2f; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tools button, .pad button {
  background: #1e3a2f;
  color: #e7efe4;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
}
button:disabled { opacity: 0.35; cursor: default; }
.pad {
  display: grid;
  grid-template-columns: 76px 76px 76px;
  grid-template-areas: ". up ." "left down right";
  gap: 6px;
  width: max-content;
  margin-top: 14px;
}
.pad [data-dir="up"] { grid-area: up; }
.pad [data-dir="down"] { grid-area: down; }
.pad [data-dir="left"] { grid-area: left; }
.pad [data-dir="right"] { grid-area: right; }
.side h1 { font: 500 34px/1.15 Georgia, "Iowan Old Style", serif; letter-spacing: -0.03em; margin: 0 0 8px; }
.side p { margin: 0 0 12px; max-width: 42ch; }
.prose { max-width: 64ch; padding-bottom: 24px; }
.prose h1 { font: 500 34px/1.15 Georgia, serif; letter-spacing: -0.03em; }
.prose li { margin: 6px 0; }
footer.colophon { color: #3e5348; font-size: 13px; padding: 10px 0 40px; }
