/* Game of Life only. The shared game rules (buttons, More games) stay in play.css. */
.lf-figures{display:flex;flex-wrap:wrap;gap:6px 20px;margin:0 0 10px;font-variant-numeric:tabular-nums;color:var(--muted)}
.lf-figures b{font:600 16px/1.5 var(--mono);color:var(--text)}
/* The stage's shape matches the grid the bundle picks: 64 by 40 cells, or 40 by 50 under the same 640 px query. */
.lf-stage{position:relative;aspect-ratio:64/40;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper);
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media (max-width:640px){.lf-stage{aspect-ratio:40/50}}
/* No touch panning on the canvas, so a finger draws cells instead of scrolling the page. */
.lf-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.lf-nojs{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;padding:24px;color:var(--muted)}
.lf-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:12px 0 0}
.lf-bar .btn,.lf-bar .alt-btn{min-height:44px;padding:9px 18px}
.lf-play{min-width:6.5em}
.lf-bar :is(.btn,.alt-btn):disabled{opacity:.5;cursor:default}
.lf-bar :is(.btn,.alt-btn,input,select):focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.lf-field{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px}
.lf-field span{font-weight:600}
.lf-speed{width:140px;min-height:44px;accent-color:var(--accent)}
.lf-speed-out{min-width:6.5em;font-variant-numeric:tabular-nums;color:var(--muted)}
.lf-pattern{min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--hair);border-radius:8px;background:var(--paper);color:var(--text);font:inherit}
/* One line is reserved, so an announcement never moves the page under it. */
.lf-status{min-height:1.5em;margin:12px 0 0;line-height:1.5;color:var(--muted)}
@media (max-width:420px){.lf-status{min-height:3em}}
