/* Playable demo board on /how-to-play. It reuses the .ex-grid diagram look from guide.css
   and the game's .controls buttons, sized up so every cell is a comfortable tap target. */
.demo-root {
  margin: 18px 0 0;
  max-width: 360px;
}
.demo-grid {
  width: 360px;
  max-width: 100%;
}
.demo-grid > span {
  min-width: 44px;
  cursor: pointer;
}
.demo-grid > span[aria-disabled='true'] {
  cursor: default;
}
.demo-grid > span:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
  z-index: 3;
}
.demo-status {
  min-height: 3em;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.demo-controls {
  margin-top: 12px;
}
.demo-checklist-label {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
/* Scoped under .guide to override the guide's own list indentation. */
.guide .demo-techniques {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.guide .demo-techniques li {
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.demo-techniques li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--muted);
  border-radius: 2px;
}
.demo-techniques li.done::before {
  border-color: var(--ink);
  background: var(--ink);
}
.demo-techniques a {
  flex: 1;
}
.demo-state {
  color: var(--muted);
  font-size: 13px;
}
.demo-techniques li.done .demo-state {
  color: var(--ink);
  font-weight: 600;
}
