#ms-app button {
  box-sizing: border-box;
  cursor: pointer;
  min-width: auto;
  min-height: auto;
  padding: 0;
  box-shadow: none;
  text-shadow: none;
  color: #000;
}

#ms-app {
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ms-app #header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  background: #c0c0c0;
  border: 2px inset #fff;
  padding: 4px 8px;
  width: fit-content;
}

#ms-app .counter {
  background: #000;
  color: #f00;
  font-family: monospace;
  font-size: 18px;
  padding: 2px 6px;
  min-width: 40px;
  text-align: right;
  border: 1px inset #808080;
}

#ms-app #face {
  font-size: 18px;
  cursor: pointer;
  border: 2px outset #fff;
  background: #c0c0c0;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
}

#ms-app #face:active { border-style: inset; }

#ms-app #grid {
  display: grid;
  grid-template-columns: repeat(9, 24px);
  border: 3px inset #808080;
}

#ms-app .cell {
  width: 24px;
  height: 24px;
  border: 2px outset #fff;
  background: #c0c0c0;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
}

#ms-app .cell.revealed {
  border: 1px solid #808080;
  cursor: default;
}

#ms-app .cell.mine-hit { background: #f00; }

#ms-app .c1 { color: #0000ff; }
#ms-app .c2 { color: #008000; }
#ms-app .c3 { color: #ff0000; }
#ms-app .c4 { color: #000080; }
#ms-app .c5 { color: #800000; }
#ms-app .c6 { color: #008080; }
#ms-app .c7 { color: #000; }
#ms-app .c8 { color: #808080; }

#ms-app #msg {
  margin-top: 6px;
  font-weight: bold;
  height: 16px;
}
