main { max-width: 760px; padding-top: 24px; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
#board { display: grid; grid-template-columns: repeat(16, 1fr); width: min(100%, 560px); aspect-ratio: 1; border: 2px solid #26332e; background: #fff; margin: 24px auto; }
.cell { background: #fff; border: 1px solid #b7b7b7; min-width: 0; }
.cell.alive { background: #111; }
.cell.dies, .legend .dies { background: #da3636; }
.cell.born, .legend .born { background: #24b64b; }
.cell.survives, .legend .survives { background: #2475df; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .9rem; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 18px; height: 18px; border: 1px solid #555; }
#step-status { min-height: 3em; }
.panel li { margin-block: 8px; }
